Critical Malicious Code Vulnerability in Airbnb-Javascript Package
Summary
MAL-2025-6147: Malicious code in airbnb-javascript (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 Airbnb-Javascript package is a widely used library in the JavaScript ecosystem, providing coding standards and style guides for developers. It is designed to help maintain code quality and consistency across projects. However, this package has been found to contain malicious code, posing a significant security risk to any system utilizing it.
Vulnerability Detail
The vulnerability originates from the inclusion of embedded malicious code within the Airbnb-Javascript package. This code can compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of this code means that simply removing the package may not eliminate all threats, as full control of the affected system may have been granted to an external entity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall airbnb-javascript
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
Currently, there are no effective workarounds to mitigate the risks associated with this vulnerability other than removing the package and securing your system.
Conclusion
The discovery of malicious code within the Airbnb-Javascript package highlights the importance of vigilance in software security. Immediate action is required to mitigate risks associated with this vulnerability, including the removal of the package and securing sensitive information.
See every vulnerability recorded for airbnb-javascript →
FAQ
You should remove the package immediately and rotate any sensitive information that may have been compromised.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.
No, it is not safe to reinstall the package until a patched version is released and confirmed to be secure.
The consequences include unauthorized access to sensitive data, potential data breaches, and loss of control over the affected system.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file.