Malicious Code Injection in nasution-poke4: A Threat to npm Packages
Summary
MAL-2025-162028: Malicious code in nasution-poke4 (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-poke4 is an npm package that appears to be part of a broader scheme involving the tea.xyz token reward campaign. This package, like others in the campaign, is designed to manipulate the npm registry by generating and publishing numerous derivative packages with randomized names. Its functionality is compromised due to the presence of malicious code that alters package metadata and inflates developer reputation scores.
Vulnerability Detail
The vulnerability in nasution-poke4 originates from its association with the tea.xyz token reward campaign, which floods the npm registry with malicious packages. The malicious payload modifies the package.json file by removing private flags, changing version numbers, and generating random package names. This behavior leads to the pollution of the npm registry and can potentially harm developers by inflating reputation scores through deceptive practices.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasution-poke4
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 workaround, you can monitor your package dependencies using tools like Vulert. By utilizing Vulert's playground at https://vulert.com/scanner, you can check if your application is affected by this vulnerability without needing to sign up or install any software.
Conclusion
The nasution-poke4 package poses a significant risk due to its malicious code designed to manipulate the npm registry. It is crucial for developers to remove this package and monitor their dependencies to safeguard their projects from potential threats.
See every vulnerability recorded for nasution-poke4 →
FAQ
nasution-poke4 is an npm package involved in a malicious campaign that aims to manipulate the npm registry.
The vulnerability can lead to the pollution of the npm registry and may compromise the integrity of your project's dependencies.
You should uninstall the nasution-poke4 package immediately using 'npm uninstall nasution-poke4'.
Yes, regularly monitor your dependencies and use tools like Vulert to stay informed about potential vulnerabilities.
Yes, you can use Vulert's playground at Vulert Scanner to check for vulnerabilities without any signup.