MAL-2026-6137 Malicious code in react-error-lint (npm)
Malicious package
Published
MAL-2026-6137 is a malicious package: react-error-lint (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-6137/ (Markdown: https://insights.sbomify.com/MAL-2026-6137/index.md)
- Package
- react-error-lint
- Registry
- npm
What is MAL-2026-6137?
MAL-2026-6137 is a malicious package in react-error-lint, published on 18 Jun 2026.
Official description
Package name and README impersonate the popular react-error-boundary library (advertising an ErrorBoundary export, citing bvaughn and kentcdodds.com), but index.js exports unrelated helpers
setDefaultModule and buildoptimize. The buildoptimize function issues an HTTP request to the hardcoded URL https://vercel-node-rouge-beta.vercel.app/icons/23 and passes the response body to eval(JSON.parse(b)) with no integrity check. Any caller that invokes buildoptimize() runs whatever JavaScript the attacker-controlled Vercel preview endpoint returns at that moment, granting remote code execution on the installer's machine. The advertised ErrorBoundary API does not exist, confirming the package is a lure rather than a misnamed legitimate library.What should I do about MAL-2026-6137?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.