Critical Malicious Code Vulnerability in @zapier/secret-scrubber Package
Summary
MAL-2025-190691: Malicious code in @zapier/secret-scrubber (npm). Affects @zapier/secret-scrubber versions 1.1.3 – 1.1.5. 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 @zapier/secret-scrubber package is an npm library designed to help developers scrub sensitive information from their code. It is commonly used in applications to ensure that secrets and keys are not exposed in logs or error messages. However, recent findings have revealed that this package contains malicious code that compromises the security of any system it is installed on.
Vulnerability Detail
The vulnerability originates from the package containing embedded malicious code, which can lead to full compromise of any computer that has it installed. This malicious code can potentially expose sensitive information, such as secrets and keys, to unauthorized entities. Users are advised to treat any system running this package as fully compromised and to take immediate action to secure their data.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @zapier/secret-scrubber
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
There are no effective workarounds for this vulnerability other than removing the package and securing your system. It is recommended to avoid using the affected versions (1.1.5, 1.1.4, 1.1.3) of the package altogether.
Conclusion
The discovery of malicious code in the @zapier/secret-scrubber package poses a significant risk to users. Immediate action is required to remove the package and secure any compromised systems. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for @zapier/secret-scrubber →
FAQ
You should immediately uninstall the package and rotate any secrets or keys stored on the affected system.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.
The affected versions are 1.1.5, 1.1.4, and 1.1.3.
No patch is available for this vulnerability; the only solution is to remove the package.
Vulert monitors and alerts in real-time for open-source vulnerabilities using just the package-lock.json file, ensuring your software remains secure.