Malicious Code Detected in eslint-plugin-i18n-shreddit: A Security Threat
Summary
MAL-2026-16437: Malicious code in eslint-plugin-i18n-shreddit (npm). Affects eslint-plugin-i18n-shreddit versions 99.9.9. 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
eslint-plugin-i18n-shreddit is an npm package designed to facilitate internationalization in JavaScript applications. However, the version 99.9.9 of this package has been identified as malicious, containing no actual ESLint plugin code but instead a postinstall hook that executes harmful actions upon installation.
Vulnerability Detail
The vulnerability originates from the malicious code embedded in the eslint-plugin-i18n-shreddit package. Upon installation, the package executes a postinstall script that collects sensitive information such as the installer's username, current working directory, hostname, and local IPv4 address. This data is then sent to an attacker-controlled webhook, potentially exposing internal build environments to further attacks. The package's metadata suggests it was designed to exploit dependency confusion, making it a significant security risk.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall eslint-plugin-i18n-shreddit
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, avoid installing the package altogether and monitor your dependencies for any malicious activity. If you have already installed it, remove it immediately and consider using alternative packages for internationalization.
Conclusion
The eslint-plugin-i18n-shreddit package poses a significant security threat due to its embedded malicious code. Users are advised to uninstall the package immediately and monitor their systems for any signs of compromise. Utilizing tools like Vulert can help in maintaining the security of your open-source dependencies.
See every vulnerability recorded for eslint-plugin-i18n-shreddit →
FAQ
eslint-plugin-i18n-shreddit is an npm package intended for internationalization in JavaScript applications but has been found to contain malicious code.
The malicious code runs a postinstall script that collects sensitive information and sends it to an attacker-controlled webhook.
Immediately uninstall the package using npm uninstall eslint-plugin-i18n-shreddit and monitor your system for any unusual activity.
Currently, there are no patched versions available for eslint-plugin-i18n-shreddit. It is recommended to remove the package entirely.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json. You can also check if your application is affected by this vulnerability using the Vulert playground.