Malicious Code Injection in decent_swallow_coral-47: npm Package Vulnerability
Summary
MAL-2025-101247: Malicious code in decent_swallow_coral-47 (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 decent_swallow_coral-47 package is part of the npm ecosystem, typically used for various JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with numerous packages. This package, like others in the campaign, is designed to manipulate developer reputation scores through automated publishing scripts.
Vulnerability Detail
The vulnerability in decent_swallow_coral-47 stems from its malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to inflate developer reputation scores and pollute the npm registry with derivative packages. The origin of this issue is linked to the tea.xyz token reward campaign, which employs these tactics to exploit the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall decent_swallow_coral-47
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 manually remove the package from your project by running the command: npm uninstall decent_swallow_coral-47. Additionally, consider using a package manager that supports vulnerability scanning to monitor your dependencies.
Conclusion
The decent_swallow_coral-47 package poses a significant risk due to its malicious code designed to manipulate npm registry behaviors. It is crucial to remove this package and monitor your dependencies for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for decent_swallow_coral-47 →
FAQ
decent_swallow_coral-47 is an npm package that is part of a campaign to manipulate developer reputation scores through automated publishing.
The vulnerability can lead to the pollution of the npm registry with malicious packages, potentially compromising your application's integrity and security.
You should uninstall the decent_swallow_coral-47 package immediately and monitor your project for any other potentially malicious dependencies.
Yes, you can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.