Malicious Code Detected in eslint-plugin-airbnb: A Critical Security Alert
Summary
MAL-2025-19848: Malicious code in eslint-plugin-airbnb (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-airbnb is a popular npm package that provides a set of ESLint rules based on Airbnb's JavaScript style guide. It is widely used in the JavaScript community to enforce coding standards and improve code quality. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications that rely on it.
Vulnerability Detail
The vulnerability in eslint-plugin-airbnb stems from the inclusion of malicious code within the package. This code can potentially compromise the security of applications using the package, leading to unauthorized access, data breaches, or other malicious activities. The issue was identified in all versions of the package, starting from its introduction, making it critical 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-airbnb
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 workaround, consider removing the eslint-plugin-airbnb package from your project until a secure version is released. You can do this by executing the command: 'npm uninstall eslint-plugin-airbnb'. This will prevent any potential exploitation of the malicious code while you await a fix.
Conclusion
The discovery of malicious code in the eslint-plugin-airbnb package highlights the importance of vigilance in managing open-source dependencies. Users are urged to take immediate action by updating or removing the package to safeguard their applications. Utilizing tools like Vulert can further enhance security by providing real-time alerts for vulnerabilities.
See every vulnerability recorded for eslint-plugin-airbnb →
FAQ
eslint-plugin-airbnb is an npm package that provides a set of ESLint rules based on Airbnb's JavaScript style guide, helping developers maintain consistent coding standards.
The specific nature of the malicious code has not been disclosed, but it poses significant security risks, including potential unauthorized access to sensitive data.
You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in real-time. By analyzing your package-lock.json file, Vulert can inform you if your application is affected by this vulnerability.
As of now, a patched version has not been released. Users should monitor the package repository for updates and apply them as soon as they are available.
If immediate updates are not possible, consider removing the package from your project as a temporary measure to mitigate risks associated with the malicious code.