Malicious Code Injection in slamet-poke12: A Threat to npm Users
Summary
MAL-2025-166024: Malicious code in slamet-poke12 (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
slamet-poke12 is an npm package that has been identified as part of a malicious campaign targeting the npm registry. This package is associated with the tea.xyz token reward initiative, which aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The malicious nature of slamet-poke12 lies in its ability to modify package metadata and republish variants, thereby polluting the npm ecosystem.
Vulnerability Detail
The vulnerability in slamet-poke12 originates from its design to include autopublish scripts that alter the package.json file. These scripts remove private flags, change version numbers, and generate random package names, which can lead to the proliferation of malicious packages in the npm registry. The ramifications include potential security risks for developers who unknowingly install these packages, as they may contain harmful code that compromises their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall slamet-poke12
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 avoid using slamet-poke12 and monitor your dependencies for any malicious packages. Additionally, consider using tools like Vulert to scan your package-lock.json for vulnerabilities. You can access Vulert's playground at https://vulert.com/scanner to check if your application is affected by this vulnerability without any signup.
Conclusion
The slamet-poke12 package poses a significant threat to npm users due to its malicious code injection capabilities. It is crucial to remove this package from your projects and utilize tools like Vulert to safeguard against future vulnerabilities. Staying informed and proactive is key to maintaining secure software development practices.
See every vulnerability recorded for slamet-poke12 →
FAQ
slamet-poke12 is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores through the publication of derivative packages.
The package can modify your project's package.json file, remove private flags, and introduce potentially harmful code, leading to security risks.
You should uninstall slamet-poke12 immediately using the command: npm uninstall slamet-poke12.
Regularly audit your dependencies, use tools like Vulert to monitor for vulnerabilities, and stay updated on security advisories related to npm packages.
Vulert is a tool that monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can check for vulnerabilities in your application without requiring access to the code or installation.