Malicious Code Injection in nasution-poke39: A Threat to npm Ecosystem
Summary
MAL-2025-162027: Malicious code in nasution-poke39 (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-poke39 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 has been known to flood the npm ecosystem with harmful packages. The primary function of this package appears to be generating and publishing derivative packages with randomized names, aimed at inflating developer reputation scores for token rewards. This behavior poses significant risks to developers and users relying on the integrity of npm packages.
Vulnerability Detail
The vulnerability in nasution-poke39 originates from its design to include malicious scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This not only compromises the integrity of the npm ecosystem but also exposes users to potential security risks, including the installation of malicious code unknowingly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasution-poke39
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-poke39 package and any other packages that are part of the tea.xyz token reward campaign. Regularly audit your package-lock.json file to identify and remove any suspicious packages.
Conclusion
The nasution-poke39 package presents a significant threat to the npm ecosystem due to its malicious code designed to manipulate package metadata and inflate developer reputation scores. Immediate action is required to remove this package and safeguard your projects from potential security risks.
See every vulnerability recorded for nasution-poke39 →
FAQ
nasution-poke39 is an npm package linked to a malicious campaign that aims to inflate developer reputation scores through the publication of harmful derivative packages.
The vulnerability can lead to the installation of malicious code, compromising the security of your project and potentially exposing sensitive data.
You should immediately uninstall the package using 'npm uninstall nasution-poke39' and audit your project for any other suspicious packages.
Yes, you can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.
Regularly audit your dependencies, use trusted packages, and keep your software updated to the latest patched versions.