Malicious Code Injection in occupational_ant_0xrequest Package
Summary
MAL-2025-106505: Malicious code in occupational_ant_0xrequest (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 occupational_ant_0xrequest package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate certain functionalities within the npm registry, but it has been compromised to include malicious scripts that can manipulate package metadata and inflate developer reputation scores.
Vulnerability Detail
The vulnerability stems from malicious code embedded within the occupational_ant_0xrequest package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the automatic publication of derivative packages. This behavior not only pollutes the npm registry but also poses a risk to developers by compromising their reputation and potentially introducing further vulnerabilities into their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall occupational_ant_0xrequest
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 avoid using the occupational_ant_0xrequest package altogether. If it is already in use, consider replacing it with a similar package that does not have known vulnerabilities.
Conclusion
The occupational_ant_0xrequest package contains a significant vulnerability that can compromise your project's integrity and reputation. It is crucial to take immediate action by uninstalling the package and monitoring your project for any further vulnerabilities.
See every vulnerability recorded for occupational_ant_0xrequest →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, which has been compromised to include malicious scripts.
The vulnerability can lead to unauthorized modifications of your package metadata and can inflate your developer reputation scores, potentially harming your credibility.
You should uninstall the occupational_ant_0xrequest package immediately and check for any dependencies that may be affected.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.