jsdom is vulnerable to Information Disclosure
56
CVE Score
Medium
Information Disclosure
jsdom's XMLHttpRequest dispatcher keeps the request's Basic authentication credentials in a fixed auth value and checks cookies against the request's original origin for the lifetime of a dispatch, even while #dispatchHTTP follows a redirect to a different origin. A redirect response pointing at a cross-origin target therefore receives the Basic auth header and has cookies sent or accepted using the original origin's jar, despite withCredentials being false. This exposes credentials and cookies to a destination outside the origin that was supposed to receive them. The fix makes auth mutable and recomputes cookie handling against the effective redirected origin on each hop.
Upgrade the jsdom library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your code issues XMLHttpRequest requests that may receive a cross-origin redirect response.
16.6.0 - 30.1.2
Fixed in 30.1.3jsdom is vulnerable to Information Disclosure in versions 16.6.0 - 30.1.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.