CVE-2021-21298
JSON

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 packageVersionsReported by
node-red node-red< 1.2.8CVE List
@node-red/runtime (npm)before 1.2.8GitHub Advisory Database
nodered node-redbefore 1.2.8NVD

All scores

GitHub_M3.5low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N
GitHublow rating
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD3.5low CVSS:2.0AV: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:

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.&#xa0;Node-RED versiones 1.2.7 y anteriores, presentan una vulnerabilidad que permite un salto de ruta arbitrario por medio de la API Projects.&#xa0;Si la funcionalidad Proyects está habilitada, un usuario con el permiso "projects.read" puede acceder a cualquier archivo por medio de la API Proyects.&#xa0;El problema ha sido parcheado en Node-RED versión 1.2.8.&#xa0;La vulnerabilidad se aplica solo a la funcionalidad Proyects que no está habilitada por defecto en Node-RED.&#xa0;La solución alternativa principal es no dar acceso de lectura al editor de Node-RED para usuarios que no son confiables

References

Sources

SourceRecordLicence
CVE ListCVE-2021-21298 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-m33v-338h-4v9f changed 2026-07-08CC-BY-4.0
NVDCVE-2021-21298 changed 2026-06-17Public domain