# CVE-2021-21298: Path traversal in Node-Red

- Severity: Low 3.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.09%, higher than 66% of CVEs (2026-12-01)
- Published: 2021-02-26T16:25:14.000Z
- Modified: 2026-07-08T06:28:45.954Z
- Also known as: GHSA-m33v-338h-4v9f
- Weaknesses: CWE-22
- Assigned by: GitHub_M

## Description

Node-Red is a low-code programming for event-driven applications built using nodejs. Node-RED 1.2.7 and earlier 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 1.2.8. 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.

(As written by CVE List.)

## Affected

- node-red node-red: < 1.2.8
- @node-red/runtime (npm): before 1.2.8
- nodered node-red: before 1.2.8

## Every score

- GitHub_M: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N`
- GitHub: rating Low
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:P/I:N/A:N`

## References

- <https://www.npmjs.com/package/%40node-red/runtime>
- <https://github.com/node-red/node-red/releases/tag/1.2.8> (release-notes, third-party-advisory, web)
- <https://github.com/node-red/node-red/security/advisories/GHSA-m33v-338h-4v9f> (third-party-advisory, web)
- <https://github.com/node-red/node-red/commit/74db3e17d075f23d9c95d7871586cf461524c456> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21298> (advisory)
- <https://www.npmjs.com/package/@node-red/runtime> (web)

## Sources

- CVE List: [CVE-2021-21298](https://www.cve.org/CVERecord?id=CVE-2021-21298), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-m33v-338h-4v9f](https://github.com/advisories/GHSA-m33v-338h-4v9f), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-21298](https://nvd.nist.gov/vuln/detail/CVE-2021-21298), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21298 · Whole record: https://cve.day/CVE-2021-21298.json · Rebuilt by cve.day 2026-11-25T22:58:00.083Z
