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
Could your website be exposed too?
SmartScanner can check your website for Cross-site scripting in SocksJS-node and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Cross-site Scripting in node-red-dashboard - CVE-2019-10756
- node-red-dashboard vulnerable to Cross-site Scripting - CVE-2022-3783
- Cross-Site Scripting in Prism - prismjs - CVE-2020-15138
- Cross-site scripting vulnerability in TinyMCE - tinymce - GHSA-27gm-ghr9-4v95 - CVE-2020-17480
You might also like:
See something that needs correcting? Let us knowUpdated February 01, 2023


