Malicious Code Detected in eslint-plugin-es-spec: A Critical Security Alert
Summary
MAL-2025-19853: Malicious code in eslint-plugin-es-spec (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
eslint-plugin-es-spec is an npm package designed to provide linting rules for ECMAScript specifications. It helps developers ensure that their code adheres to the latest JavaScript standards. However, this package has been identified to contain malicious code, posing significant security risks to users who integrate it into their projects.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the eslint-plugin-es-spec package. This code can potentially compromise the security of applications that utilize this package, leading to unauthorized access, data breaches, or other malicious activities. The issue is particularly concerning as it affects all versions starting from the initial release, making it imperative for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall eslint-plugin-es-spec
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 temporary measure, users can remove the eslint-plugin-es-spec package from their project until a secure version is released. This can be done with the command: 'npm uninstall eslint-plugin-es-spec'. Consider using alternative linting packages that do not have known vulnerabilities.
Conclusion
The discovery of malicious code in the eslint-plugin-es-spec package highlights the importance of vigilance in open-source software management. Users are urged to take immediate action by updating or removing the package to safeguard their applications.
See every vulnerability recorded for eslint-plugin-es-spec →
FAQ
eslint-plugin-es-spec is an npm package that provides linting rules for ECMAScript specifications, helping developers maintain code quality.
The specific nature of the malicious code has not been disclosed, but it poses significant security risks to applications using the package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
As of now, a patched version has not been released. Users should monitor the package repository for updates.
If immediate removal is not possible, consider isolating the affected code and implementing additional security measures to mitigate risks.