Malicious Code Injection in royal_stingray_0xrequest Package
Summary
MAL-2025-108225: Malicious code in royal_stingray_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 royal_stingray_0xrequest package is part of the npm ecosystem, often utilized in JavaScript projects for various functionalities. However, it has been identified as part of a malicious campaign that floods the npm registry with harmful packages. This package is designed to manipulate the npm registry and inflate developer reputation scores through automated scripts.
Vulnerability Detail
The vulnerability in the royal_stingray_0xrequest package originates from its association with the tea.xyz token reward campaign. It contains malicious scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the integrity of other packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall royal_stingray_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 royal_stingray_0xrequest package altogether and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The royal_stingray_0xrequest package poses significant risks due to its malicious code designed to manipulate the npm registry. It is crucial for developers to remove this package from their projects and monitor for any potential vulnerabilities using tools like Vulert.
See every vulnerability recorded for royal_stingray_0xrequest →
FAQ
It is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
The vulnerability can lead to the pollution of the npm registry and compromise the integrity of your project's dependencies.
You should uninstall the package immediately using npm uninstall royal_stingray_0xrequest.
Yes, you should look for other npm packages that provide similar functionality without the associated risks.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file. You can also check your application for vulnerabilities using the Vulert playground at Vulert Scanner.