{"id":"CVE-2021-21297","aliases":["CVE-2021-21297","GHSA-xp9c-82x8-7f67"],"related":[],"kind":"vulnerability","state":"published","title":"Prototype Pollution in Node-Red","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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 contienen, una vulnerabilidad de Contaminación de Prototipos en la API de administración.&#xa0;Una petición mal formada puede modificar el prototipo del Objeto JavaScript predeterminado con el potencial de afectar el comportamiento predeterminado del tiempo de ejecución de Node-RED.&#xa0;La vulnerabilidad está parcheada en versión 1.2.8.&#xa0;Una solución alternativa es asegurarse de que solo los usuarios autorizados puedan ser capaces de acceder a la URL de editor","source":"nvd"}],"published":"2021-02-26T16:20:17.000Z","modified":"2026-07-08T06:28:13.960Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":7.7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:N/I:P/A:N","score":4,"rating":"MEDIUM"}],"cwes":["CWE-915","CWE-1321"],"affected":[{"ranges":[{"version":"< 1.2.8","status":"affected"}],"vendor":"node-red","product":"node-red","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.2.8"}],"ecosystem":"npm","package":"@node-red/runtime","purl":"pkg:npm/%40node-red/runtime","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.2.8"}],"vendor":"nodered","product":"node-red","cpe":"cpe:2.3:a:nodered:node-red:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/node-red/node-red/security/advisories/GHSA-xp9c-82x8-7f67","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.npmjs.com/package/%40node-red/runtime","tags":["x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.npmjs.com/package/%40node-red/editor-api","tags":["x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/node-red/node-red/releases/tag/1.2.8","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21297","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/node-red/node-red","tags":["package"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/package/@node-red/editor-api","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/package/@node-red/runtime","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21297","url":"https://www.cve.org/CVERecord?id=CVE-2021-21297","licence":"CVE Terms of Use","modified":"2024-08-03T18:09:15.688Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xp9c-82x8-7f67","url":"https://github.com/advisories/GHSA-xp9c-82x8-7f67","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:13.960Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21297","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21297","licence":"Public domain","modified":"2026-06-17T03:35:14.380Z"}],"updatedAt":"2026-11-25T22:58:00.083Z","epss":{"score":0.01414,"percentile":0.73519,"date":"2026-12-01T12:00:22.000Z"}}