Malicious Code Injection in sole_porcupine_0xrequest Package
Summary
MAL-2025-108908: Malicious code in sole_porcupine_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 sole_porcupine_0xrequest package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate interactions with the tea protocol, but it has been compromised, leading to significant security concerns. The malicious version of this package is engineered to manipulate package metadata and publish unauthorized variants, thereby undermining the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the sole_porcupine_0xrequest package. This payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names. The intent is to inflate developer reputation scores through the automatic generation and publication of derivative packages. This behavior can lead to the pollution of the npm registry, making it difficult for developers to trust legitimate packages and potentially introducing security risks into their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sole_porcupine_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 sole_porcupine_0xrequest package from your project by executing the command: npm uninstall sole_porcupine_0xrequest. This will prevent the execution of any malicious code associated with the package until a fix is applied.
Conclusion
The sole_porcupine_0xrequest package has been compromised, leading to significant security vulnerabilities that can affect applications using it. It is essential to take immediate action by updating or removing the package to safeguard your projects. Utilizing tools like Vulert can help monitor and alert you to such vulnerabilities in real-time.
See every vulnerability recorded for sole_porcupine_0xrequest →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to facilitate interactions with the tea protocol.
The vulnerability can lead to unauthorized modifications of your package.json file and the introduction of malicious packages, compromising the security of your application.
You should immediately update the package to the latest version or uninstall it to prevent any potential security risks.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.