3.5low
Path traversal in Node-Red
- Severity
- 3.5low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.09% (higher than 66% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-m33v-338h-4v9f
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| node-red node-red | < 1.2.8 | CVE List |
| @node-red/runtime (npm) | before 1.2.8 | GitHub Advisory Database |
| nodered node-red | before 1.2.8 | NVD |
All scores
| GitHub_M | 3.5low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N |
| GitHub | low rating | |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:P/I:N/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
This vulnerability 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.
Patches
The issue has been patched in Node-RED 1.2.8
Workarounds
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.
For more information
If you have any questions or comments about this advisory:
- Email us at team@nodered.org
Acknowledgements
Thanks to the Tencent Woodpecker Security Team for disclosing this vulnerability.
NVD (es)
Node-Red es una programación de low-code para aplicaciones basadas en eventos diseñadas usando nodejs. Node-RED versiones 1.2.7 y anteriores, presentan una vulnerabilidad que permite un salto de ruta arbitrario por medio de la API Projects. Si la funcionalidad Proyects está habilitada, un usuario con el permiso "projects.read" puede acceder a cualquier archivo por medio de la API Proyects. El problema ha sido parcheado en Node-RED versión 1.2.8. La vulnerabilidad se aplica solo a la funcionalidad Proyects que no está habilitada por defecto en Node-RED. La solución alternativa principal es no dar acceso de lectura al editor de Node-RED para usuarios que no son confiables
References
| https://www.npmjs.com/package/%40node-red/runtime | ||
| https://github.com/node-red/node-red/releases/tag/1.2.8 | release-notes, third-party-advisory, web | |
| https://github.com/node-red/node-red/security/advisories/GHSA-m33v-338h-4v9f | third-party-advisory, web | |
| https://github.com/node-red/node-red/commit/74db3e17d075f23d9c95d7871586cf461524c456 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-21298 | advisory | |
| https://www.npmjs.com/package/@node-red/runtime | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21298 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m33v-338h-4v9f changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-21298 changed 2026-06-17 | Public domain |