Malicious Code Detected in double-string-log-test-assert Package
Summary
MAL-2025-18676: Malicious code in double-string-log-test-assert (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 double-string-log-test-assert package is an npm library designed for logging string assertions in JavaScript applications. It is commonly used by developers for testing purposes. However, this package has been identified to contain malicious code, which poses a significant risk to applications that utilize it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the double-string-log-test-assert package. This code can potentially compromise the security of applications that depend on this package, leading to unauthorized access, data breaches, or other malicious activities. 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 double-string-log-test-assert
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 temporarily replace the functionality provided by double-string-log-test-assert with custom logging methods or utilize other trusted packages that offer similar capabilities.
Conclusion
The double-string-log-test-assert package has been identified as containing malicious code, posing a serious risk to applications that utilize it. Users are advised to uninstall the package and seek alternatives to ensure the security of their applications.
See every vulnerability recorded for double-string-log-test-assert →
FAQ
It is an npm package used for logging string assertions in JavaScript applications.
The specific nature of the malicious code has not been disclosed, but it poses significant security risks.
You can use Vulert, which monitors and alerts for open-source vulnerabilities. Visit Vulert Scanner to check your application without needing to sign up.
You should uninstall the package immediately and look for alternatives that do not have known vulnerabilities.
No, there is no patch available for the double-string-log-test-assert package, and it is recommended to remove it from your project.