Malicious Code Injection in nasution-poke47: A Threat to npm Users
Summary
MAL-2025-162036: Malicious code in nasution-poke47 (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
nasution-poke47 is an npm package that is part of the tea.xyz token reward campaign. It is designed to facilitate the distribution of tokens by automatically generating and publishing derivative packages. However, this package has been identified as malicious, containing scripts that modify its own package.json file to remove private flags and change version numbers, leading to potential abuse in the npm ecosystem.
Vulnerability Detail
The vulnerability in nasution-poke47 originates from its association with a malicious campaign that floods the npm registry with derivative packages. The malicious payload alters the package.json file, removing private flags and generating random package names, which can lead to reputation inflation for developers and pollution of the npm registry. This poses significant risks, including the potential for unauthorized access to sensitive data and the proliferation of malicious software.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasution-poke47
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 nasution-poke47 package and any other packages associated with the tea.xyz token reward campaign. Additionally, consider using tools like Vulert to monitor your package-lock.json file for vulnerabilities.
Conclusion
The nasution-poke47 package poses a significant threat due to its malicious code designed to manipulate package metadata and inflate developer reputation scores. It is crucial to uninstall this package and monitor your dependencies for vulnerabilities to maintain the integrity of your projects.
See every vulnerability recorded for nasution-poke47 →
FAQ
nasution-poke47 is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through the automatic generation of derivative packages.
The malicious code modifies your package.json file, potentially exposing your project to security risks and polluting the npm registry with unauthorized packages.
You should uninstall the nasution-poke47 package immediately using the command 'npm uninstall nasution-poke47' and check for any other affected packages.
You can use Vulert to monitor your package-lock.json file for vulnerabilities in real-time without needing to access the code or install additional software.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.