Malicious Code Injection in secure_guan-notthedev Package
Summary
MAL-2025-108494: Malicious code in secure_guan-notthedev (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 secure_guan-notthedev package is part of the npm ecosystem, often used in JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages typically include scripts that automate the generation and publication of derivative packages, impacting the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in the secure_guan-notthedev package stems from its malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, leading to the pollution of the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which incentivizes the creation of such malicious packages to inflate developer reputation scores. The ramifications include potential security risks for applications relying on this package, as well as the degradation of the npm registry's reliability.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall secure_guan-notthedev
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 secure_guan-notthedev package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your package dependencies using tools like Vulert, which can alert you to vulnerabilities in real-time.
Conclusion
The secure_guan-notthedev package poses a significant risk due to its malicious code that alters package metadata and contributes to npm registry pollution. It is crucial to remove this package from your projects and monitor your dependencies for vulnerabilities using tools like Vulert.
See every vulnerability recorded for secure_guan-notthedev →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, known for containing malicious code.
The malicious code modifies your package.json file, potentially leading to security vulnerabilities and the pollution of the npm registry.
You should remove the secure_guan-notthedev package from your project and look for alternatives.
Yes, you can use tools like Vulert, which monitors your package-lock.json file for vulnerabilities without requiring code access.
You can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without signing up.