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

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.41%, higher than 73% of CVEs (2026-12-01)
- Published: 2021-02-26T16:20:17.000Z
- Modified: 2026-07-08T06:28:13.960Z
- Also known as: GHSA-xp9c-82x8-7f67
- Weaknesses: CWE-915, CWE-1321
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- node-red node-red: < 1.2.8
- @node-red/runtime (npm): before 1.2.8
- nodered node-red: before 1.2.8

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/node-red/node-red/security/advisories/GHSA-xp9c-82x8-7f67> (third-party-advisory, web)
- <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> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21297> (advisory)
- <https://github.com/node-red/node-red> (package)
- <https://www.npmjs.com/package/@node-red/editor-api> (web)
- <https://www.npmjs.com/package/@node-red/runtime> (web)

## Sources

- CVE List: [CVE-2021-21297](https://www.cve.org/CVERecord?id=CVE-2021-21297), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-xp9c-82x8-7f67](https://github.com/advisories/GHSA-xp9c-82x8-7f67), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-21297](https://nvd.nist.gov/vuln/detail/CVE-2021-21297), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21297 · Whole record: https://cve.day/CVE-2021-21297.json · Rebuilt by cve.day 2026-11-25T22:58:00.083Z
