MAL-2025-4339

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/eslint-config-airbnb-compat/MAL-2025-4339.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2025-4339
Aliases
  • GHSA-x96j-xh9g-x4cf
Published
2025-05-17T06:38:42Z
Modified
2025-05-28T07:19:33Z
Summary
Malicious code in eslint-config-airbnb-compat (npm)
Details

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:

  1. The package uses a seemingly benign postinstall script that sets up an environment variable pointing to a malicious domain (https://proxy.eslint-proxy.site)

  2. It introduces a transitive dependency on another malicious package ts-runtime-compat-check

  3. The dependency makes HTTP requests to the attacker-controlled server, which returns base64-encoded payloads in error messages

  4. 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.


-= Per source details. Do not edit below this line.=-

Source: ghsa-malware (4b39d8f82da80dcc8ff8c3fbe7253d1d6a1b46957193451be9c46a990cb25cb8)

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.

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2025-05-23T02:24:01Z",
            "source": "ghsa-malware",
            "sha256": "4b39d8f82da80dcc8ff8c3fbe7253d1d6a1b46957193451be9c46a990cb25cb8",
            "id": "GHSA-x96j-xh9g-x4cf",
            "import_time": "2025-05-24T00:36:06.462792789Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ]
        }
    ]
}
References
Credits

Affected packages

npm / eslint-config-airbnb-compat

Package

Name
eslint-config-airbnb-compat
View open source insights on deps.dev
Purl
pkg:npm/eslint-config-airbnb-compat

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Type
SEMVER
Events
Introduced
0.0.0

Database specific

{
    "cwes": [
        {
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code",
            "cweId": "CWE-506"
        }
    ]
}