CVE-2020-8823
MEDIUM 6.1CVSS 3.1Cross-site scripting in SocksJS-node
htmlfile in lib/transport/htmlfile.js in SockJS before 0.3.0 is vulnerable to Reflected XSS via the /htmlfile c (aka callback) parameter.
- Published
- 10 Feb 2020
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-hh8v-jmh3-9437SNYK-JS-SOCKJS-548397
- Sources
- NVDJSONOSV GHSA-hh8v-jmh3-9437JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sockjs_project | sockjscpe:2.3:a:sockjs_project:sockjs:*:*:*:*:*:node.js:*:* |
< 0.3.0 | 0.3.0 |
| OSV | npm | sockjs | < 0.3.0 | 0.3.0 |
References
- https://github.com/theyiyibest/Reflected-XSS-on-SockJS · Exploit, Patch, Third Party Advisory, WEB
- https://github.com/theyiyibest/Reflected-XSS-on-SockJS/issues/1 · Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-SOCKJS-548397 · Third Party Advisory, WEB
- https://www.sockjs.org · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-8823 · ADVISORY
- https://www.npmjs.com/package/sockjs · WEB
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 10 Feb 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Apr 2021)