Malicious Code Injection in irashi-wew-sza: A Threat to npm Packages
Summary
MAL-2025-156910: Malicious code in irashi-wew-sza (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 package 'irashi-wew-sza' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages often contain scripts that manipulate package metadata and publish numerous variants to inflate developer reputation scores, posing a significant risk to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in 'irashi-wew-sza' originates from its design to include autopublish scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of malicious variants. This behavior not only pollutes the npm registry but also compromises the security of applications relying on this package, potentially allowing for unauthorized access or data manipulation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall irashi-wew-sza
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 'irashi-wew-sza' package from your project by executing the command: 'npm uninstall irashi-wew-sza'. This will prevent any malicious activity associated with this package until a secure version is available.
Conclusion
The 'irashi-wew-sza' package poses a significant security risk due to its malicious code that alters package metadata and repopulates the npm registry with harmful variants. It is crucial to take immediate action by updating or removing the package to safeguard your applications.
See every vulnerability recorded for irashi-wew-sza →
FAQ
The vulnerability involves malicious scripts that modify package metadata and republish variants, compromising the integrity of the npm registry.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
As a temporary measure, you can uninstall the package using 'npm uninstall irashi-wew-sza' to mitigate risks until a secure version is released.
Yes, the vulnerability can lead to unauthorized access, data manipulation, and overall compromise of application security.
You can refer to the npm documentation and security advisories, or use tools like Vulert for real-time monitoring.