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

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.89%, higher than 80% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-02-10T02:06:25.000Z
- Modified: 2026-09-10T03:49:03.202Z
- Also known as: GHSA-hh8v-jmh3-9437, SNYK-JS-SOCKJS-548397
- Weaknesses: CWE-79
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- sockjs (npm): before 0.3.0
- sockjs_project sockjs: before 0.3.0

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/theyiyibest/Reflected-XSS-on-SockJS> (exploit, patch, third-party-advisory, web)
- <https://www.sockjs.org> (vendor-advisory, web)
- <https://snyk.io/vuln/SNYK-JS-SOCKJS-548397> (third-party-advisory, web)
- <https://github.com/theyiyibest/Reflected-XSS-on-SockJS/issues/1> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-8823> (advisory)
- <https://www.npmjs.com/package/sockjs> (web)

## Sources

- CVE List: [CVE-2020-8823](https://www.cve.org/CVERecord?id=CVE-2020-8823), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-hh8v-jmh3-9437](https://github.com/advisories/GHSA-hh8v-jmh3-9437), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-8823](https://nvd.nist.gov/vuln/detail/CVE-2020-8823), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-8823 · Whole record: https://cve.day/CVE-2020-8823.json · Rebuilt by cve.day 2026-11-25T22:57:50.777Z
