{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-21298","id":"CVE-2021-21298","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 ","descriptionLong":"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":"2021-02-26T16:25:14.000Z","updated":"2026-10-20T10:54:28.000217860Z","reserved":"2020-12-22T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":3.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N","rating":"low","source":"GitHub_M"},"metrics":[{"version":"3.1","score":3.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N","rating":"low","source":"GitHub_M"},{"version":"3.1","score":3.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N","rating":"low","source":"github.com"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"OSV"},{"version":"2.0","score":3.5,"vector":"AV:N/AC:M/Au:S/C:P/I:N/A:N","rating":"low","source":"NVD"}],"rating":"low","products":["node-red"],"affectedProducts":[{"vendor":"node-red","product":"node-red","defaultStatus":null,"versions":[{"status":"affected","version":"< 1.2.8"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@node-red/runtime","purl":"pkg:npm/%40node-red/runtime","ranges":["<1.2.8"],"fixed":["1.2.8"],"advisory":"GHSA-m33v-338h-4v9f"}],"cwes":["CWE-22"],"aliases":["GHSA-m33v-338h-4v9f"],"references":[{"url":"https://www.npmjs.com/package/%40node-red/runtime","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"https://github.com/node-red/node-red/releases/tag/1.2.8","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web"]},{"url":"https://github.com/node-red/node-red/security/advisories/GHSA-m33v-338h-4v9f","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/node-red/node-red/commit/74db3e17d075f23d9c95d7871586cf461524c456","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21298","tags":["advisory"]},{"url":"https://www.npmjs.com/package/@node-red/runtime","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.0108,"epssPercentile":0.65852,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-21298","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21298","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-21298","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-m33v-338h-4v9f","ok":true,"note":"GHSA-m33v-338h-4v9f"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-21298","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}