Malicious Code Detected in dsnippets Package - MAL-2025-18942
Summary
MAL-2025-18942: Malicious code in dsnippets (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 dsnippets package is an npm library designed for developers to create and manage code snippets efficiently. It offers features such as snippet storage, retrieval, and sharing capabilities. However, it has been identified as containing malicious code, which poses significant security risks to users who integrate it into their projects.
Vulnerability Detail
The vulnerability in the dsnippets package arises from the inclusion of malicious code that can compromise the security of applications utilizing this package. This code may lead to unauthorized access, data breaches, or other harmful actions within the affected systems. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall dsnippets
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 workaround, users may consider removing the dsnippets package from their project until a secure version is released. This can be done with the command: npm uninstall dsnippets. Additionally, users can explore alternative packages that provide similar functionality without the associated risks.
Conclusion
The dsnippets package has been identified as containing malicious code, posing significant risks to users. It is crucial to update or remove the package to mitigate these risks. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for dsnippets →
FAQ
The malicious code can potentially allow unauthorized access to user data and may lead to data breaches or other harmful actions.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
If an immediate update is not possible, consider removing the package or using alternative libraries that do not have known vulnerabilities.
Yes, tools like Vulert can help you monitor your dependencies for vulnerabilities using just the package-lock.json file.
Ignoring this vulnerability could lead to severe security issues, including unauthorized access to sensitive data and potential exploitation of your application.