CVE-2020-8823Sockjs Project Sockjs
Medium 6.1 No auth needed
Follow: this CVE · Sockjs Project · Sockjs Project Sockjs We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 1.9% probability of exploitation in 30 days · percentile 80
- Auth required
- No
- Published
- Feb 10, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
htmlfile in lib/transport/htmlfile.js in SockJS before 0.3.0 is vulnerable to Reflected XSS via the /htmlfile c (aka callback) parameter.
What to do
- Apply the vendor's security update for Sockjs.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | sockjs |
< 0.3.0 |
0.3.0 |
npm install sockjs@0.3.0 |
Per OSV / GitHub Advisories (GHSA-hh8v-jmh3-9437). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| sockjs_project | sockjs | < 0.3.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Patch Third Party Advisory
- github.com Third Party Advisory
- snyk.io Third Party Advisory
- www.sockjs.org Vendor Advisory