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

CVE-2021-21298: Path Traversal

February 26, 2021 (updated November 7, 2023)

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 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

  • nvd.nist.gov/vuln/detail/CVE-2021-21298

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. Learn more about Dependency Scanning →

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')

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:01 +0000.