Malicious Code Injection in pretty_leopon_0xrequest Package
Summary
MAL-2025-107239: Malicious code in pretty_leopon_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 pretty_leopon_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 has been compromised, leading to significant security concerns. Its primary attributes include automatic publishing capabilities, which have been exploited to generate malicious variants that can affect developers' reputations and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the pretty_leopon_0xrequest package stems from its association with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts that modify the package.json file, removing private flags, altering version numbers, and generating random package names. This behavior not only pollutes the npm registry but also poses a risk of reputation damage to developers and potential exploitation of their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall pretty_leopon_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 remove the pretty_leopon_0xrequest package from your project by executing the following command: npm uninstall pretty_leopon_0xrequest. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The pretty_leopon_0xrequest package has been identified as containing malicious code that can compromise the security of applications using it. It is crucial for developers to take immediate action by updating or removing the package to protect their projects from potential threats.
See every vulnerability recorded for pretty_leopon_0xrequest →
FAQ
It is an npm package that has been compromised and is associated with a malicious campaign aimed at inflating developer reputation scores.
The vulnerability can lead to the injection of malicious code, which may compromise your application's integrity and security.
You should immediately update the package to the latest version or remove it from your project to mitigate risks.
You can use tools like Vulert, which monitors your package-lock.json file for vulnerabilities in real-time without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.