Malicious Code Injection in nasution-poke7: A Threat to npm Users
Summary
MAL-2025-162042: Malicious code in nasution-poke7 (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 nasution-poke7 package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development and distribution of JavaScript applications. However, it has been identified as part of a malicious campaign that exploits npm's publishing mechanisms, leading to potential security risks for developers and their applications.
Vulnerability Detail
The vulnerability in nasution-poke7 stems from its association with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts designed to modify the package.json file, removing private flags and changing version numbers. This behavior allows the package to continuously republish itself under random names, polluting the npm registry and potentially compromising the integrity of applications that depend on it. The malicious payload can lead to reputation inflation for developers involved in the tea.xyz token reward campaign, posing risks to the broader npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nasution-poke7
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, avoid using the nasution-poke7 package and monitor your project for any dependencies that may have been affected by this malicious code. Regularly check your package-lock.json file for any unauthorized changes.
Conclusion
The nasution-poke7 package poses a significant security risk due to its malicious code that modifies package metadata and repopulates the npm registry with compromised packages. Developers should take immediate action to remove this package and monitor their dependencies to ensure the security of their applications.
See every vulnerability recorded for nasution-poke7 →
FAQ
nasution-poke7 is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through the publication of derivative packages.
The vulnerability can lead to unauthorized modifications in your package.json file, potentially compromising your application's integrity and security.
You should uninstall the package immediately using the command npm uninstall nasution-poke7 and check for any other affected dependencies.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software by analyzing your package-lock.json file. You can also check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner.
Regularly update your dependencies, use tools like Vulert for monitoring, and be cautious about the packages you include in your projects.