CVE-2021-21298 json
Path traversal in Node-Red
published 5y ago modified 4mo ago also GHSA-m33v-338h-4v9f , EUVD-2021-0559
- cvss
- 3.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 65%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @node-red/runtime 1.2.8
- nodered node-red 1.2.8
Is CVE-2021-21298 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
1.08% chance of exploitation in the next 30 days, higher than 65% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 3.5 | AV:N/AC:M/Au:S/C:P/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @node-red/runtime | <1.2.8 |
1.2.8 |
Affected products
- node-red node-red
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/node-red/node-red/commit/74db3e17d075f23d9c95d7871586cf461524c456
web, patch, third-party-advisory
- npmjs.com /package/%40node-red/runtime
-
github.com
/node-red/node-red/releases/tag/1.2.8
web, release-notes, third-party-advisory
-
github.com
/node-red/node-red/security/advisories/GHSA-m33v-338h-4v9f
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-21298
advisory
-
npmjs.com
/package/@node-red/runtime
web
Sources
- CVE List CVE-2021-21298
- GitHub Advisory GHSA-m33v-338h-4v9f
- NVD CVE-2021-21298
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.