Malicious Code Detected in baidu-src-test Package - npm Vulnerability Alert
Summary
MAL-2025-191460: Malicious code in baidu-src-test (npm). Affects baidu-src-test versions 0.0.4. 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 'baidu-src-test' package, version 0.0.4, is a Node.js package available through npm. It is designed for testing purposes but has been flagged for containing malicious code. This package communicates with domains linked to harmful activities and executes commands that can compromise system security.
Vulnerability Detail
The vulnerability in the 'baidu-src-test' package arises from its malicious behavior, which includes communication with a domain associated with malicious activities and executing commands that may lead to unauthorized access or data breaches. This vulnerability poses significant risks to systems using this package, as it can lead to data theft, system compromise, or further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall baidu-src-test
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 workaround, you can avoid using the 'baidu-src-test' package altogether and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your dependencies using tools like Vulert, which can alert you to vulnerabilities in your open-source packages.
Conclusion
The 'baidu-src-test' package has been identified as malicious, posing serious security risks to applications that utilize it. It is crucial to uninstall this package and monitor your dependencies for vulnerabilities using tools like Vulert to ensure the security of your software.
See every vulnerability recorded for baidu-src-test →
FAQ
The 'baidu-src-test' package is a Node.js package intended for testing purposes but has been identified as malicious.
The vulnerability can lead to unauthorized access, data breaches, or system compromise, posing significant risks to your application.
You should uninstall the 'baidu-src-test' package immediately and look for a secure alternative.
You can use tools like Vulert, which monitors your package-lock.json file to alert you of any open-source vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without requiring any signup.