{"api_version":"1","generated_at":"2026-07-23T14:35:49+00:00","cve":"CVE-2021-21297","urls":{"html":"https://cve.report/CVE-2021-21297","api":"https://cve.report/api/cve/CVE-2021-21297.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21297","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21297"},"summary":{"title":"CVE-2021-21297","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-02-26 17:15:00","updated_at":"2023-11-07 03:29:00"},"problem_types":["CWE-1321"],"metrics":[],"references":[{"url":"https://github.com/node-red/node-red/releases/tag/1.2.8","name":"https://github.com/node-red/node-red/releases/tag/1.2.8","refsource":"MISC","tags":["Release Notes","Third Party Advisory"],"title":"Release 1.2.8: Maintenance Release · node-red/node-red · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.npmjs.com/package/@node-red/editor-api","name":"https://www.npmjs.com/package/@node-red/editor-api","refsource":"MISC","tags":["Release Notes","Third Party Advisory"],"title":"@node-red/editor-api  -  npm","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.npmjs.com/package/@node-red/runtime","name":"https://www.npmjs.com/package/@node-red/runtime","refsource":"MISC","tags":["Release Notes","Third Party Advisory"],"title":"@node-red/runtime  -  npm","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.npmjs.com/package/%40node-red/runtime","name":"https://www.npmjs.com/package/%40node-red/runtime","refsource":"","tags":[],"title":"@node-red/runtime  -  npm","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/node-red/node-red/security/advisories/GHSA-xp9c-82x8-7f67","name":"https://github.com/node-red/node-red/security/advisories/GHSA-xp9c-82x8-7f67","refsource":"CONFIRM","tags":["Third Party Advisory"],"title":"Prototype Pollution through mis-use of admin API · Advisory · node-red/node-red · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.npmjs.com/package/%40node-red/editor-api","name":"https://www.npmjs.com/package/%40node-red/editor-api","refsource":"","tags":[],"title":"@node-red/editor-api  -  npm","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-21297","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21297","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"21297","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"nodered","cpe5":"node-red","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"21297","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"nodered","cpe5":"node-red","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-21297","qid":"980785","title":"Nodejs (npm) Security Update for @node-red/runtime (GHSA-xp9c-82x8-7f67)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-21297","STATE":"PUBLIC","TITLE":"Prototype Pollution in Node-Red"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"node-red","version":{"version_data":[{"version_value":"< 1.2.8"}]}}]},"vendor_name":"node-red"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.7,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')"}]},{"description":[{"lang":"eng","value":"CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes"}]}]},"references":{"reference_data":[{"name":"https://github.com/node-red/node-red/security/advisories/GHSA-xp9c-82x8-7f67","refsource":"CONFIRM","url":"https://github.com/node-red/node-red/security/advisories/GHSA-xp9c-82x8-7f67"},{"name":"https://www.npmjs.com/package/@node-red/runtime","refsource":"MISC","url":"https://www.npmjs.com/package/@node-red/runtime"},{"name":"https://www.npmjs.com/package/@node-red/editor-api","refsource":"MISC","url":"https://www.npmjs.com/package/@node-red/editor-api"},{"name":"https://github.com/node-red/node-red/releases/tag/1.2.8","refsource":"MISC","url":"https://github.com/node-red/node-red/releases/tag/1.2.8"}]},"source":{"advisory":"GHSA-xp9c-82x8-7f67","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-02-26 17:15:00","lastModifiedDate":"2023-11-07 03:29:00","problem_types":["CWE-1321"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:S/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":4},"severity":"MEDIUM","exploitabilityScore":8,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:nodered:node-red:*:*:*:*:*:node.js:*:*","versionEndExcluding":"1.2.8","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"21297","Ordinal":"195423","Title":"CVE-2021-21297","CVE":"CVE-2021-21297","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"21297","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"21297","Ordinal":"2","NoteData":"2021-02-26","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"21297","Ordinal":"3","NoteData":"2021-02-26","Type":"Other","Title":"Modified"}]}}}