Critical Malicious Code Vulnerability in sd-pay Package
Summary
MAL-2025-192562: Malicious code in sd-pay (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 sd-pay package is an npm library designed for handling payment processing in JavaScript applications. It is commonly used by developers to integrate payment functionalities into their projects. However, this package has been identified as containing malicious code, which poses significant security risks to any system that has it installed.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the sd-pay package. This code can compromise the entire system, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of this code is classified under CWE-506, indicating that it appears to be intentionally harmful. Systems running this package should be considered fully compromised, and immediate action is required to mitigate potential damage.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sd-pay
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 essential to monitor your environment for any signs of compromise.
Conclusion
The sd-pay package has been identified as containing malicious code that compromises the security of any system using it. Immediate removal of the package and rotation of sensitive information is essential to mitigate risks. Utilizing tools like Vulert can help monitor for such vulnerabilities in the future.
See every vulnerability recorded for sd-pay →
FAQ
Immediately uninstall the sd-pay package and rotate any sensitive information stored on the affected system.
Look for unusual activity, unauthorized access attempts, or any signs of data breaches. It is advisable to conduct a thorough security audit.
No, there is currently no patched version of sd-pay available. The best course of action is to remove the package entirely.
Yes, Vulert can monitor your projects for open-source vulnerabilities using just the package-lock.json file. You can check your application for vulnerabilities without needing to install any software.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.