CVE-2021-21298
MEDIUM 6.5CVSS 3.1Path traversal in Node-Red
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.
- Published
- 26 Feb 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-m33v-338h-4v9f
- Sources
- NVDJSONOSV GHSA-m33v-338h-4v9fJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nodered | node-redcpe:2.3:a:nodered:node-red:*:*:*:*:*:node.js:*:* |
< 1.2.8 | 1.2.8 |
| OSV | npm | @node-red/runtime | < 1.2.8 | 1.2.8 |
References
- https://github.com/node-red/node-red/commit/74db3e17d075f23d9c95d7871586cf461524c456 · Patch, Third Party Advisory, WEB
- 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://www.npmjs.com/package/%40node-red/runtime
- https://nvd.nist.gov/vuln/detail/CVE-2021-21298 · ADVISORY
- https://www.npmjs.com/package/@node-red/runtime · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 26 Feb 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Feb 2021)