Advisory

GHSA-xp9c-82x8-7f67

Also known as: CVE-2021-21297

Summary

Prototype Pollution in Node-Red

Details

Impact

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.

Patches

The vulnerability is patched in the 1.2.8 release.

Workarounds

A workaround is to ensure only authorised users are able to access the editor url.

For more information
If you have any questions or comments about this advisory:

Acknowledgements

Thanks to the Tencent Woodpecker Security Team for disclosing this vulnerability.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-02-26 16:31 UTC
Modified
2026-07-08 06:28 UTC

Affected packages and fixes

@node-red/runtime

npm · All systems

Affected

  • introduced 0, fixed 1.2.8 (semver)

Fixed versions

1.2.8

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences