{"id":"GHSA-xp9c-82x8-7f67","summary":"Prototype Pollution in Node-Red","details":"### Impact\n\nNode-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.\n\n### Patches\n\nThe vulnerability is patched in the 1.2.8 release.\n\n### Workarounds\n\nA workaround is to ensure only authorised users are able to access the editor url.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [team@nodered.org](mailto:team@nodered.org)\n\n### Acknowledgements\n\nThanks to the Tencent Woodpecker Security Team for disclosing this vulnerability.","aliases":["CVE-2021-21297"],"modified":"2026-07-08T06:28:13.960703229Z","published":"2021-02-26T16:31:05Z","database_specific":{"cwe_ids":["CWE-1321","CWE-915"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2021-02-26T16:22:38Z","nvd_published_at":"2021-02-26T17:15:00Z"},"references":[{"type":"WEB","url":"https://github.com/node-red/node-red/security/advisories/GHSA-xp9c-82x8-7f67"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21297"},{"type":"PACKAGE","url":"https://github.com/node-red/node-red"},{"type":"WEB","url":"https://github.com/node-red/node-red/releases/tag/1.2.8"},{"type":"WEB","url":"https://www.npmjs.com/package/@node-red/editor-api"},{"type":"WEB","url":"https://www.npmjs.com/package/@node-red/runtime"}],"affected":[{"package":{"name":"@node-red/runtime","ecosystem":"npm","purl":"pkg:npm/%40node-red/runtime"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.8"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/02/GHSA-xp9c-82x8-7f67/GHSA-xp9c-82x8-7f67.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N"}]}