What’s Vulnerable › Vulnerabilities
CVE-2021-21297: Prototype Pollution in Node-Red
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-02-26 · updated 2026-06-17
- Weakness: CWE-915
Description
Node-Red is a low-code programming for event-driven applications built using nodejs. Node-RED 1.2.7 and earlier contains a Prototype Pollution vulnerability in the admin API. A badly formed request can modify the prototype of the default JavaScript Object with the potential to affect the default behaviour of the Node-RED runtime. The vulnerability is patched in the 1.2.8 release. A workaround is to ensure only authorized users are able to access the editor url.
Affected products
- node-red: before 1.2.8 — fixed in 1.2.8
How to fix
Upgrade to a fixed version: node-red 1.2.8. Check the vendor advisory for mitigations.
References
- https://github.com/node-red/node-red/releases/tag/1.2.8
- https://github.com/node-red/node-red/security/advisories/GHSA-xp9c-82x8-7f67
- https://www.npmjs.com/package/%40node-red/editor-api
- https://www.npmjs.com/package/%40node-red/runtime
- https://github.com/node-red/node-red/releases/tag/1.2.8
- https://github.com/node-red/node-red/security/advisories/GHSA-xp9c-82x8-7f67
- https://www.npmjs.com/package/%40node-red/editor-api
- https://www.npmjs.com/package/%40node-red/runtime
Get alerted when CVE-2021-21297 or the next vulnerability affects your stack