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

- Priority: **Routine**
- Reason: Not severe (CVSS 3.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-02-26 · Modified: 2024-08-03
- Aliases: GHSA-m33v-338h-4v9f
- Record: https://cvemate.com/vulnerability/CVE-2021-21298 · JSON: https://cvemate.com/vulnerability/CVE-2021-21298/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 1.093%, percentile 66.583%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- node-red node-red: \< 1.2.8
- nodered node-red: \< 1.2.8
- @node-red runtime (Npm): \< 1.2.8

## References

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

---

Data as of 2026-12-05T12:32:19.564Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
