Critical Malicious Code Vulnerability in jsdom-js Package
Summary
MAL-2026-225: Malicious code in jsdom-js (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The jsdom-js package is a popular library in the npm ecosystem that provides a JavaScript implementation of the DOM and HTML standards, allowing developers to manipulate web pages programmatically. It is widely used in server-side applications and testing environments. However, this package has been compromised, leading to significant security concerns.
Vulnerability Detail
The vulnerability originates from the presence of malicious code embedded within the jsdom-js package. This code can fully compromise any computer that has the package installed or running, potentially allowing an attacker to gain unauthorized access to sensitive information, including secrets and keys stored on the affected system. The implications of this vulnerability are severe, as it may lead to data breaches and loss of control over the affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall jsdom-js
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a workaround, ensure that all secrets and keys stored on the affected computer are rotated immediately from a different, secure computer. Additionally, monitor your system for any unusual activity that may indicate ongoing malicious behavior.
Conclusion
The jsdom-js package has been compromised with malicious code, posing a significant risk to any systems using it. Immediate action is required to remove the package and secure any sensitive information. Utilizing tools like Vulert can help monitor for such vulnerabilities in the future.
See every vulnerability recorded for jsdom-js →
FAQ
You should remove the jsdom-js package from your system immediately and rotate any sensitive information stored on that computer.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
Currently, there is no patch available for the compromised version of jsdom-js. It is recommended to remove the package entirely.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and loss of control over your systems.
Vulert monitors and alerts in real-time for open-source vulnerabilities using just the package-lock.json file, allowing you to stay informed about potential threats.