Critical Malicious Code Vulnerability in Airbnb-Typescript-Prettier Package
Summary
MAL-2025-14199: Malicious code in airbnb-typescript-prettier (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-typescript-prettier package is a tool designed to integrate Airbnb's JavaScript style guide with TypeScript and Prettier, facilitating code formatting and style consistency in TypeScript projects. However, it has been identified to contain malicious code that poses significant security risks to users.
Vulnerability Detail
The vulnerability in the airbnb-typescript-prettier package stems from the inclusion of malicious code that can compromise the integrity of the user's application. This code may allow unauthorized access, data exfiltration, or other harmful actions, potentially leading to severe consequences for developers and end-users alike. The issue was introduced in version 0 and affects all subsequent versions.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall airbnb-typescript-prettier
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, you can avoid using the airbnb-typescript-prettier package until a secure version is released. Consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The airbnb-typescript-prettier package has been found to contain malicious code that poses significant security risks. It is essential to uninstall the package and monitor for updates or alternatives to ensure the safety of your application.
See every vulnerability recorded for airbnb-typescript-prettier →
FAQ
It is a package that integrates Airbnb's JavaScript style guide with TypeScript and Prettier for consistent code formatting.
The malicious code can potentially allow unauthorized access and data exfiltration, posing serious security risks.
You can use Vulert, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.
You should uninstall the package immediately and look for alternatives or wait for a patched version to be released.
Regularly monitor your dependencies using tools like Vulert and keep your packages updated to the latest secure versions.