Skip to content

Prototype Pollution through mis-use of admin API

Moderate
knolleary published GHSA-xp9c-82x8-7f67 Feb 19, 2021

Package

npm @node-red/editor-api, @node-red/runtime (npm)

Affected versions

<1.2.8

Patched versions

1.2.8

Description

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

Moderate

CVE ID

CVE-2021-21297

Weaknesses

No CWEs