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.
Recommendation
Update the sockjs package to the latest compatible version. Followings are version details:
- Affected version(s): < 0.3.0
- Patched version(s): 0.3.0
References
- GHSA-hh8v-jmh3-9437
- snyk.io
- www.sockjs.org
- www.npmjs.com
- CVE-2020-8823
- CWE-79
- CAPEC-310
- OWASP 2021-A3
- OWASP 2021-A6
Related Issues
- Expo SDK has an OAuth vulnerability - CVE-2023-28131
- tRPC 11 WebSocket DoS Vulnerability - CVE-2025-43855
- @rpldy/uploader prototype pollution - CVE-2024-57082
- Signature Malleabillity in elliptic - CVE-2020-13822
- Tags:
- npm
- sockjs
Anything's wrong? Let us know Last updated on February 01, 2023