{"id":"CVE-2021-21298","published":"2021-02-26T16:25:14Z","modified":"2024-08-03T18:09:15Z","title":"Path traversal in Node-Red","vendor":"node-red","product":"node-red","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.5,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01093,"percentile":0.65056,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://www.npmjs.com/package/%40node-red/runtime","tags":["x_refsource_MISC"]},{"url":"https://github.com/node-red/node-red/releases/tag/1.2.8","tags":["x_refsource_MISC"]},{"url":"https://github.com/node-red/node-red/security/advisories/GHSA-m33v-338h-4v9f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/node-red/node-red/commit/74db3e17d075f23d9c95d7871586cf461524c456","tags":["x_refsource_MISC"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":13.01},{"name":"CVSS severity","points":2.45}]},"vendorSlug":"node-red","affectedVersions":[{"vendor":"node-red","product":"node-red","versions":["< 1.2.8"]}],"affected":[{"ecosystem":"npm","package":"@node-red/runtime","vulnerableRanges":["<1.2.8"],"patched":["1.2.8"],"from":["GHSA-m33v-338h-4v9f"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in the Projects API of Node-RED, the low-code event-driven application platform built on Node.js, lets arbitrary files be read through that API. An attacker needs a user account holding the projects.read permission, and the flaw only applies when the Projects feature is enabled, which is not the default.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:24Z"},"euvd":{"id":"EUVD-2021-0559","exploited":false,"provenance":"source"}}