Malicious Code Injection in irashi-se-swe: A Threat to npm Packages
Summary
MAL-2025-156902: Malicious code in irashi-se-swe (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-se-swe' is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit npm's publishing system. It is designed to generate and publish derivative packages with randomized names, which can lead to reputation inflation for developers involved in the tea.xyz token reward scheme. The malicious behavior of this package poses a significant risk to the integrity of the npm registry and its users.
Vulnerability Detail
The vulnerability in 'irashi-se-swe' originates from its malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to flood the npm registry with numerous variants of the package, making it difficult for users to identify legitimate packages. The ramifications of this vulnerability include potential security risks for applications that depend on these packages, as well as the pollution of the npm registry, which can undermine trust in the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall irashi-se-swe
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 measure, avoid using the 'irashi-se-swe' package and consider using alternative packages that provide similar functionality without the associated risks. You can also monitor your project for vulnerabilities using tools like Vulert, which can alert you to open-source vulnerabilities in real-time. To check if your application is affected by this vulnerability, you can use the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The 'irashi-se-swe' package poses a significant threat due to its malicious code designed to exploit the npm registry. It is crucial for developers to be vigilant and remove this package from their projects. By utilizing tools like Vulert, developers can enhance their security posture and ensure their applications remain safe from such vulnerabilities.
See every vulnerability recorded for irashi-se-swe →
FAQ
The 'irashi-se-swe' package is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
This vulnerability can lead to the inclusion of malicious code in your application, potentially compromising its security and integrity.
You should uninstall the package immediately using 'npm uninstall irashi-se-swe' and check your application for any potential security issues.
You can use tools like Vulert, which allows you to monitor and receive alerts for open-source vulnerabilities in your software.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without requiring a signup.