{"schemaVersion":4,"id":"CVE-2021-21298","aliases":["GHSA-m33v-338h-4v9f"],"status":"published","duplicateOf":null,"title":"Path traversal in Node-Red","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.","dates":{"published":"2021-02-26T16:25:14.000Z","modified":"2024-08-03T18:09:15.856Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.5,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":3.5,"severity":"low","vector":"AV:N/AC:M/Au:S/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01093,"percentile":0.66583,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.01299999999999999,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.0108},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01071,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01071,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01071,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01071,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01071,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01071,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01071,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01071,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01071,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01071,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01071,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01071,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01071,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01071,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01071,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01093,"percentile":0.66583}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.0108,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.01093,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.01093,"percentile":0.66583}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"node-red","product":"node-red","name":"node-red","label":"node-red","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.2.8","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.2.8","endInclusive":false}}],"versionsText":"< 1.2.8","eol":null,"hubHref":"/vendor/node-red/node-red"},{"vendor":"nodered","product":"node-red","name":"node-red","label":"node-red","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.2.8","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.2.8","endInclusive":false}}],"versionsText":"< 1.2.8","eol":null,"hubHref":"/vendor/nodered/node-red"},{"vendor":"@node-red","product":"runtime","name":"@node-red/runtime","label":"runtime","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@node-red/runtime","purlType":"npm","versions":[{"text":"< 1.2.8","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.2.8","endInclusive":false}}],"versionsText":"< 1.2.8","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.npmjs.com/package/%40node-red/runtime","label":"www.npmjs.com/package/%40node-red/runtime","hostname":"www.npmjs.com","tags":["X Refsource MISC"]},{"url":"https://github.com/node-red/node-red/releases/tag/1.2.8","label":"github.com/node-red/node-red/releases/tag/1.2.8","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes","Third Party Advisory"]},{"url":"https://github.com/node-red/node-red/security/advisories/GHSA-m33v-338h-4v9f","label":"github.com/node-red/node-red/security/advisories/GHSA-m33v-338h-4v9f","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Third Party Advisory"]},{"url":"https://github.com/node-red/node-red/commit/74db3e17d075f23d9c95d7871586cf461524c456","label":"github.com/node-red/node-red/commit/74db3e17d075f23d9c95d7871586cf461524c456","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21298","label":"nvd.nist.gov/vuln/detail/CVE-2021-21298","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://www.npmjs.com/package/@node-red/runtime","label":"www.npmjs.com/package/@node-red/runtime","hostname":"www.npmjs.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-02-26T16:25:14.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T18:09:15.856Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 3.5, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,1,35],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.01093,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2024-08-03T18:09:15.856Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2024-08-03T18:09:15.856Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2024-08-03T18:09:15.856Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.5,"vector":"AV:N/AC:M/Au:S/C:P/I:N/A:N","version":"2.0"}],"epss":{"value":0.01093,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T12:01:28.220Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T12:01:28.725Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T12:01:28.919Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T12:01:03.802Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T12:01:26.562Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T12:01:25.560Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T12:20:15.781Z","stale":false,"partial":false}}