Malicious Code Injection in sunden-diak-nulin: A Threat to npm Ecosystem
Summary
MAL-2025-166285: Malicious code in sunden-diak-nulin (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-nulin' is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign aimed at manipulating developer reputation scores through the tea.xyz token reward system. It is designed to automatically generate and publish derivative packages, which can lead to significant pollution of the npm registry and compromise the integrity of the ecosystem.
Vulnerability Detail
The vulnerability in 'sunden-diak-nulin' originates from its association with a malicious campaign that employs scripts to modify the package.json file. These modifications include the removal of private flags, alteration of version numbers, and the generation of random package names. This behavior not only inflates developer reputation scores but also poses risks by potentially introducing harmful code into projects that depend on these packages. The continuous republishing of variants can lead to a cluttered npm registry, making it difficult for developers to find legitimate packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sunden-diak-nulin
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, you can remove the 'sunden-diak-nulin' package from your project by executing the command: 'npm uninstall sunden-diak-nulin'. This will prevent any malicious code from executing in your application until a fix is applied.
Conclusion
The 'sunden-diak-nulin' package has been identified as a malicious entity within the npm ecosystem, posing significant risks to developers and their projects. It is crucial to take immediate action by updating or removing the package to safeguard your applications. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.
See every vulnerability recorded for sunden-diak-nulin →
FAQ
The vulnerability involves malicious code that modifies package.json files and repackages them under random names, which can lead to security risks and npm registry pollution.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.
If an immediate update is not possible, consider uninstalling the package to mitigate risks until a fix is available.
While specific exploits have not been detailed, the nature of the vulnerability suggests that it could lead to the introduction of harmful code into dependent projects.
This vulnerability can lead to a polluted npm registry, making it harder for developers to find reliable packages and increasing the risk of integrating malicious code into applications.