Malicious Code Injection in slight_swan-notthedev Package
Summary
MAL-2025-108814: Malicious code in slight_swan-notthedev (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 slight_swan-notthedev package is part of the npm ecosystem, often utilized for various JavaScript functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with derivative packages. This package is designed to manipulate developer reputation scores through automated publishing scripts.
Vulnerability Detail
The vulnerability originates from the package's involvement in a token reward campaign that exploits npm's publishing mechanisms. It contains scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of other packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall slight_swan-notthedev
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 slight_swan-notthedev package from your project by executing: npm uninstall slight_swan-notthedev. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The slight_swan-notthedev package poses a significant risk due to its malicious code designed to manipulate npm's publishing system. It is crucial to take immediate action by uninstalling the package and monitoring for updates. Utilizing tools like Vulert can help in maintaining the security of your application.
See every vulnerability recorded for slight_swan-notthedev →
FAQ
It is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores.
The vulnerability can lead to the pollution of the npm registry and may compromise the integrity of your application by introducing malicious code.
You should uninstall the package immediately and monitor for any updates or patches that may be released.
Yes, Vulert can monitor your project for open-source vulnerabilities using just your package-lock.json file, providing real-time alerts.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.