CVE-2020-8823 Cross-site scripting in SocksJS-node
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.
| Package | Affected | Fixed in |
|---|---|---|
sockjs npm | All versions | 0.3.0 |
sockjs npm | All versions | 0.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.
Other vulnerabilities in n/a
Sources
Also known as GHSA-hh8v-jmh3-9437, SNYK-JS-SOCKJS-548397.