Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @node-red/runtime
  4. ›
  5. CVE-2021-21298

CVE-2021-21298: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

February 26, 2021 (updated March 1, 2021)

Node-Red is a low-code programming for event-driven applications built using nodejs. Node-RED has a vulnerability which allows arbitrary path traversal via the Projects API. If the Projects feature is enabled, a user with projects.read permission is able to access any file via the Projects API. The issue has been patched in Node-RED The vulnerability applies only to the Projects feature which is not enabled by default in Node-RED. The primary workaround is not give untrusted users read access to the Node-RED editor.

References

  • github.com/advisories/GHSA-m33v-338h-4v9f
  • github.com/node-red/node-red/commit/74db3e17d075f23d9c95d7871586cf461524c456
  • github.com/node-red/node-red/releases/tag/1.2.8
  • github.com/node-red/node-red/security/advisories/GHSA-m33v-338h-4v9f
  • nvd.nist.gov/vuln/detail/CVE-2021-21298
  • www.npmjs.com/package/@node-red/runtime

Code Behaviors & Features

Detect and mitigate CVE-2021-21298 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.2.8

Fixed versions

  • 1.2.8

Solution

Upgrade to version 1.2.8 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

npm/@node-red/runtime/CVE-2021-21298.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:24 +0000.