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
- Cross-site Scripting in Joplin - CVE-2020-15930
- Cross-site Scripting in dompurify (GHSA-63q7-h895-m982) - CVE-2020-26870
- Cross-site Scripting in vis-timeline - CVE-2020-28487
- Cross-site Scripting (XSS) in Eclipse Theia - CVE-2020-27224
- Tags:
- npm
- sockjs
Anything's wrong? Let us know Last updated on February 01, 2023