MAL-2026-5581

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/webpack-patch/MAL-2026-5581.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5581
Aliases
  • GHSA-3hxr-3hxr-pqq4
Published
2026-06-11T05:06:30Z
Modified
2026-09-01T11:45:05Z
Summary
Malicious code in webpack-patch (npm)
Details

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

Source: amazon-inspector (d0f5ce3525e99528190ba5217a777184e302d46050fc23bef173de6fda240eba)

Package impersonates the webpack ecosystem but is unrelated to webpack. When the exported middleware is invoked, index.js spawns a detached node lib/caller.js child. caller.js fetches https://jsonkeeper.com/b/XRGF3 via axios and passes the response's .cookie field to new Function.constructor('require', s)(require), executing attacker-controlled JavaScript with full Node privileges and a retry loop. The C2 URL and HTTP header name/value are stored as base64 strings under sham process.env keys (DEV_API_KEY base64-decodes to https://jsonkeeper.com/b/XRGF3); a sibling const.js variant points at https://jsonkeeper.com/b/4NAKK, providing pivot URLs if the primary paste is removed. jsonkeeper.com is an anonymous mutable paste host — whoever controls the paste controls arbitrary code execution on every consumer that loads webpack-patch and exercises its API. The package.json description is generic boilerplate copied from an unrelated security policy, and the main is a fake pino-style middleware whose only meaningful effect is launching the dropper.

Source: ghsa-malware (c0fa02eb8a58fb15c7b71d6ab94306801f07b0a14ff28abb18e83a5063fce9ea)

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": [
        {
            "id": "IN-MAL-2026-005546",
            "import_time": "2026-06-11T05:41:05.571785854Z",
            "modified_time": "2026-06-11T05:06:30Z",
            "sha256": "d0f5ce3525e99528190ba5217a777184e302d46050fc23bef173de6fda240eba",
            "source": "amazon-inspector",
            "versions": [
                "1.1.7"
            ]
        },
        {
            "id": "GHSA-3hxr-3hxr-pqq4",
            "import_time": "2026-07-06T18:54:03.579371784Z",
            "modified_time": "2026-07-06T18:04:03Z",
            "sha256": "c0fa02eb8a58fb15c7b71d6ab94306801f07b0a14ff28abb18e83a5063fce9ea",
            "source": "ghsa-malware",
            "versions": [
                "1.1.7"
            ]
        },
        {
            "id": "IN-MAL-2026-009219",
            "import_time": "2026-07-09T16:20:52.147975535Z",
            "modified_time": "2026-07-09T15:45:37Z",
            "sha256": "2e5981454fc68e5b3f5460c97c4a4fea3b98b208f795245e6d190a1f7dd56526",
            "source": "amazon-inspector",
            "versions": [
                "1.2.0"
            ]
        },
        {
            "id": "GHSA-3hxr-3hxr-pqq4",
            "import_time": "2026-07-10T03:23:39.5412296Z",
            "modified_time": "2026-07-10T02:56:04Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "014c807f846f4ec5ff184415d090dcf6f972b6bfc40fba55592f1fe8067503cd",
            "source": "ghsa-malware",
            "versions": [
                "1.1.7"
            ]
        },
        {
            "id": "IN-MAL-2026-009618",
            "import_time": "2026-07-10T16:19:41.618663274Z",
            "modified_time": "2026-07-10T15:31:17Z",
            "sha256": "211fe03a2f3cc2baedeaf6395b413786d7ba17a709f0a7558a3f9777dcdc1ba3",
            "source": "amazon-inspector",
            "versions": [
                "1.1.8"
            ]
        },
        {
            "id": "IN-MAL-2026-009619",
            "import_time": "2026-07-10T16:19:41.773874501Z",
            "modified_time": "2026-07-10T15:31:24Z",
            "sha256": "630f6588b5bc3fb3ecd11fcaa4f852d272d9897c9de5fda06b4025fd6fd5a5fa",
            "source": "amazon-inspector",
            "versions": [
                "1.1.9"
            ]
        },
        {
            "id": "RLMA-2026-05651",
            "import_time": "2026-07-20T13:14:53.623849896Z",
            "modified_time": "2026-07-20T11:04:24Z",
            "sha256": "97032812fab9ccb8f1402ba416a2caf085a62c2da4fa7cd127f03cb43776473e",
            "source": "reversing-labs",
            "versions": [
                "1.1.7"
            ]
        },
        {
            "id": "RLUA-2026-06548",
            "import_time": "2026-09-01T11:38:20.200569654Z",
            "modified_time": "2026-08-24T17:16:57Z",
            "sha256": "47e8bc35225f311ef8b74d3468274f9a6d475c43f54afdd70487d609e93004f7",
            "source": "reversing-labs",
            "versions": [
                "1.1.8"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / webpack-patch

Package

Name
webpack-patch
View open source insights on deps.dev
Purl
pkg:npm/webpack-patch

Affected ranges

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

Affected versions

1.*
1.1.7
1.1.8
1.1.9
1.2.0

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "lib/caller.js",
            "sha256": "d81e48769a830cd3384a4b8977ade12e5ab7583eb7cca84e7ab966d15871bd71",
            "tlsh": "f8017b8a30fa605c015510f64b1fa4327011e4273c49e5c5378c87524fea9ae6963aed"
        },
        {
            "path": "package.json",
            "sha256": "dad1894553c8a92913e245428b988952b49dc32a00bccb19413b34a728f451da",
            "tlsh": "4c019761deb89e2301ed25824c2e0743ba619c075828fc2d32db512c4f9e9bf05bf25d"
        }
    ],
    "package_integrity": [
        {
            "filename": "webpack-patch-1.1.7.tgz",
            "hashes": {
                "sha1": "579b6db1639a0b92682b85346780946a7afaf31d",
                "sha512_sri": "sha512-o9vr5PSWI24mjWCB61s3I1Gl7JZ20p7J2LDb6dGYzc1njpSYa0pMFKX6Nl1YG3Arcf+aIpSf09poJqu6KJzejw=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/webpack-patch/MAL-2026-5581.json"