Intel

AIKIDO-2026-624296

jsdom is vulnerable to Information Disclosure

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Nov 3, 2026
November 3, 2026

56

CVE Score

Medium

Information Disclosure

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the jsdom library to the patch version.

Who does this affect?

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.

Package

Versions

16.6.0 - 30.1.2

Fixed in 30.1.3

Background info

jsdom is vulnerable to Information Disclosure in versions 16.6.0 - 30.1.2.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea