Malicious Code Injection in patria-jengkol32-apidev Package
Summary
MAL-2025-89391: Malicious code in patria-jengkol32-apidev (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 patria-jengkol32-apidev package is part of the npm ecosystem, typically used for developing applications that may involve API interactions. This package has been identified as part of a malicious campaign that aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The vulnerability stems from its design to modify critical files and republish variants, leading to potential security risks for developers using it.
Vulnerability Detail
The vulnerability in the patria-jengkol32-apidev package originates from its association with the tea.xyz token reward campaign. It contains scripts that automatically modify the package.json file, removing private flags and altering version numbers. This behavior allows the package to generate random names and continuously republish itself, polluting the npm registry. The ramifications include compromised package integrity, potential exposure of sensitive data, and a degraded developer reputation due to the proliferation of malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall patria-jengkol32-apidev
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 prevent the package from executing its malicious scripts by using the following command to uninstall it: npm uninstall patria-jengkol32-apidev. Additionally, ensure that your package.json file is reviewed for any unauthorized changes.
Conclusion
The patria-jengkol32-apidev package has been compromised with malicious code that alters critical files and repopulates itself in the npm registry. It is crucial for developers to take immediate action by updating or removing the package to safeguard their applications. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities effectively.
See every vulnerability recorded for patria-jengkol32-apidev →
FAQ
It is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores.
The vulnerability can lead to unauthorized modifications of your package.json file and the proliferation of malicious packages in your project.
You should update the package to a patched version or uninstall it to mitigate the risk.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities without needing to sign up.