CVE-2026-71269: Node-RED Library API Path Traversal Leading to Arbitrary File Read/Write
Node-RED's local-filesystem library storage module (getLibraryEntry() and saveLibraryEntry() in packages/nodemodules/@node-red/runtime/lib/storage/localfilesystem/library.js), reachable via GET/POST /library/:lib/:type/path, joins the user-supplied path parameter directly into the filesystem path via fspath.join(libDir, type, path) with no traversal sanitization, containment check, or path normalization/prefix verification. An authenticated user (including read-only-scoped tokens for the read path) can supply a path containing ../ sequences to read arbitrary files outside the library directory; a user with write access can write arbitrary files, enabling remote code execution via SSH authorizedkeys or cron injection. This is a distinct, separately unpatched traversal from the previously fixed CVE-2021-21298 (Projects API).
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-71269?
CVE-2026-71269 has a high severity score of 7.2.
What risk does CVE-2026-71269 pose?
CVE-2026-71269 poses a risk score of 66.
How do I fix CVE-2026-71269?
To fix CVE-2026-71269, ensure proper validation and sanitation of user-supplied path parameters before accessing the filesystem.
What type of vulnerability is CVE-2026-71269?
CVE-2026-71269 is classified as a Path Traversal vulnerability.
Which component is affected by CVE-2026-71269?
The affected component is the Node-RED local-filesystem library storage module.