CVE-2020-8823 Cross-site scripting in SocksJS-node

Medium 6.1 Published Updated

Reflected XSS in SockJS allows attackers to execute arbitrary scripts in victim browsers via the callback parameter.

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

What is CVE-2020-8823?

CVE-2020-8823 is a medium-severity cross-site scripting vulnerability in n/a, published on 10 Feb 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

htmlfile in lib/transport/htmlfile.js in SockJS before 0.3.0 is vulnerable to Reflected XSS via the /htmlfile c (aka callback) parameter.

Weakness: CWE-79

Which versions are affected by CVE-2020-8823?

2 open source packages ship an affected version, including sockjs. It affects 1 product.

PackageAffectedFixed in
sockjs npmAll versions0.3.0
sockjs npmAll versions0.3.0

Products include Sockjs Project Sockjs.

How do I fix CVE-2020-8823?

Upgrade sockjs to 0.3.0 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 CVE-2020-8823 being exploited?

There is no known exploitation of CVE-2020-8823 in the wild and no public exploit code.

Sources

Also known as GHSA-hh8v-jmh3-9437, SNYK-JS-SOCKJS-548397.

Is CVE-2020-8823 in your software?

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

Check your SBOMs for free