GHSA-5g6j-8hv4-vfgj Cross-Site Scripting in node-red

Not scored Published

Attackers can inject malicious scripts via unsanitized item names, leading to arbitrary JavaScript execution in victim browsers.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-5g6j-8hv4-vfgj?

GHSA-5g6j-8hv4-vfgj is a cross-site scripting vulnerability in node-red, published on 11 Sep 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Versions of node-red prior to 0.18.6 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize the name field in new items, allowing attackers to execute arbitrary JavaScript in the victim's browser.

Recommendation

Upgrade to version 0.18.6 or later.

Which versions are affected by GHSA-5g6j-8hv4-vfgj?

2 open source packages ship an affected version, including node-red.

PackageAffectedFixed in
node-red npmAll versions0.18.6
node-red npmAll versions0.18.6

How do I fix GHSA-5g6j-8hv4-vfgj?

Upgrade node-red to 0.18.6 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is GHSA-5g6j-8hv4-vfgj being exploited?

There is no known exploitation of GHSA-5g6j-8hv4-vfgj in the wild and no public exploit code.

Sources

Is GHSA-5g6j-8hv4-vfgj in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free