MAL-2025-4339 Malicious code in eslint-config-airbnb-compat (npm)
- Package
- eslint-config-airbnb-compat
- Registry
- npm
What is MAL-2025-4339?
MAL-2025-4339 is a malicious package in eslint-config-airbnb-compat, published on 17 May 2025.
Official description
The npm package eslint-config-airbnb-compat is a malicious package impersonating the legitimate Airbnb ESLint configuration. It implements a multi-stage remote code execution attack:
The package uses a seemingly benign
postinstallscript that sets up an environment variable pointing to a malicious domain (https://proxy.eslint-proxy.site)It introduces a transitive dependency on another malicious package
ts-runtime-compat-checkThe dependency makes HTTP requests to the attacker-controlled server, which returns base64-encoded payloads in error messages
These payloads are decoded and executed using
new Function.constructor(), enabling arbitrary code execution
This supply chain attack is designed to execute attacker-controlled code while masquerading as a legitimate package from Airbnb, likely targeting both direct users and automated security tools through typosquatting.
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
What should I do about MAL-2025-4339?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.
Sources
Also known as GHSA-x96j-xh9g-x4cf.