
Cloud Vulnerability DB
A community-led vulnerabilities database
SockJS before version 0.3.0 contains a Reflected Cross-Site Scripting (XSS) vulnerability in the htmlfile transport component (CVE-2020-8823). The vulnerability specifically exists in the lib/transport/htmlfile.js file, where the htmlfile function fails to properly validate the 'c' (callback) parameter (GitHub XSS, CVE Details).
The vulnerability exists in the htmlfile function within lib/transport/htmlfile.js where there is no validation for non-alphanumeric symbols in the callback parameter. The function accepts input through the 'c' or 'callback' query parameters without proper sanitization, allowing for potential XSS payload injection. Later versions fixed this by implementing a regular expression check that only allows alphanumeric characters, hyphens, underscores, and periods in the callback parameter (GitHub XSS).
If exploited, this vulnerability allows attackers to execute arbitrary JavaScript code in the context of the victim's browser session through a specially crafted URL. This could lead to theft of sensitive information, session hijacking, or other client-side attacks (GitHub XSS).
The vulnerability has been fixed in newer versions of the library by implementing proper input validation. The fix includes a regular expression check (/a-zA-Z0-9-_./test(callback)) that validates the callback parameter to only allow alphanumeric characters and specific special characters. Users should upgrade to a version that includes this security fix (GitHub XSS).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."