Malicious Code Injection in sunden-diak-vam: A Threat to npm Ecosystem
Summary
MAL-2025-166286: Malicious code in sunden-diak-vam (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 package 'sunden-diak-vam' is part of a series of npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. This behavior poses a significant risk to the integrity of the npm registry and can lead to the proliferation of malicious code.
Vulnerability Detail
The vulnerability in 'sunden-diak-vam' originates from its malicious design, which includes autopublish scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This allows the package to continuously republish variants, polluting the npm registry and potentially compromising other packages. The ramifications include the risk of developers unknowingly using compromised packages, leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sunden-diak-vam
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 measure, you can avoid using the 'sunden-diak-vam' package and any packages that depend on it. Regularly audit your npm packages using the command 'npm audit' to identify and address vulnerabilities.
Conclusion
The 'sunden-diak-vam' package poses a significant threat to the npm ecosystem due to its malicious design aimed at inflating developer reputation scores. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain the security of their applications.
See every vulnerability recorded for sunden-diak-vam →
FAQ
The 'sunden-diak-vam' package is part of a malicious campaign that aims to inflate developer reputation scores by flooding the npm registry with derivative packages.
If your application uses the 'sunden-diak-vam' package, it may inadvertently include malicious code that can compromise its security and integrity.
You should uninstall the 'sunden-diak-vam' package immediately and audit your project for any other potentially compromised packages.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.