MAL-2026-12026

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/cors-version/MAL-2026-12026.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12026
Aliases
  • GHSA-2hwp-7m6r-hgjg
Published
2026-08-04T17:06:48Z
Modified
2026-08-05T10:06:05.681709213Z
Summary
Malicious code in cors-version (npm)
Details

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

Source: amazon-inspector (90e391c8883796e10e6d74a96311f18f2a083b2745a6bd6cae8a3d7acc61d277)

The CommonJS entry src/index.cjs exports getPlugin(), which performs an HTTPS GET to the hardcoded host astonishing-torrone-ffb31e.netlify.app with TLS verification disabled (rejectUnauthorized: false) and passes the response body directly to new Function(..., require)(require), executing the retrieved JavaScript inside the caller's Node.js process with full require access. The package advertises itself as a zero-dependency SVG utility library and its ESM sibling src/index.mjs does not expose getPlugin, so the remote loader is only present in the CJS build and is unrelated to any declared functionality. Any consumer that imports the package and invokes getPlugin() — or downstream tooling that resolves plugin factories by name — will fetch and run attacker-controlled JavaScript, and the disabled TLS check additionally exposes the fetch to MITM substitution.

Source: ghsa-malware (baf0c037ff57009bf7a5c8368b01bd5ed8bbb35a99ee3b1e02187b33982677ef)

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": [
        {
            "import_time": "2026-08-05T00:10:17.83351947Z",
            "sha256": "baf0c037ff57009bf7a5c8368b01bd5ed8bbb35a99ee3b1e02187b33982677ef",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "id": "GHSA-2hwp-7m6r-hgjg",
            "modified_time": "2026-08-04T17:06:48Z",
            "source": "ghsa-malware"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T06:48:15Z",
            "sha256": "31cc14c2580d133bdc90be1d3db60bb01486f84be98c52aca1277d3507118cd0",
            "id": "IN-MAL-2026-013610",
            "versions": [
                "1.0.2"
            ],
            "import_time": "2026-08-05T07:06:56.34150934Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T06:47:43Z",
            "sha256": "f448733f684dccf061914e14adb09c6f7e9a9abee3b5cc805cdff2812514c5f3",
            "id": "IN-MAL-2026-013606",
            "versions": [
                "1.0.3"
            ],
            "import_time": "2026-08-05T07:06:56.115721206Z"
        },
        {
            "import_time": "2026-08-05T08:22:37.870455271Z",
            "modified_time": "2026-08-05T08:20:02Z",
            "sha256": "4d9c1bd40ad471426faff5570e1d85dfacd8b352f367688ad3267a0670821e77",
            "id": "IN-MAL-2026-014229",
            "versions": [
                "1.0.5"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T08:20:54Z",
            "sha256": "90e391c8883796e10e6d74a96311f18f2a083b2745a6bd6cae8a3d7acc61d277",
            "id": "IN-MAL-2026-014235",
            "versions": [
                "1.0.4"
            ],
            "import_time": "2026-08-05T08:22:38.136719982Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T08:24:14Z",
            "sha256": "4f714cdd3b6cd8a7a8adb8dffbb6b1d636fb7e94b8ca889e4db1c13076983092",
            "id": "IN-MAL-2026-014258",
            "versions": [
                "1.0.1"
            ],
            "import_time": "2026-08-05T09:27:48.684967751Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T08:24:25Z",
            "sha256": "7619862f9b5f1ee394774e9b1c1256f80c3d2e9dbab0532dcad20778f68e59cc",
            "id": "IN-MAL-2026-014259",
            "versions": [
                "1.0.0"
            ],
            "import_time": "2026-08-05T09:27:48.889816382Z"
        }
    ]
}
References
Credits

Affected packages

npm / cors-version

Package

Affected ranges

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

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5

Database specific

cwes
[
    {
        "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",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "src/index.cjs",
            "sha256": "007c5b5ee5dce319907fb7747fb9f621311d18c58d8081384d7a5d6c42308fbc",
            "tlsh": "130274287cf364920b63709d45cb909c74b6e507305bda50ea6c49012fa87aca1f7bfd"
        },
        {
            "path": "package.json",
            "sha256": "b32a6a947872f9da2cc8363eace61a5e5907e98c5755e5cc8e3c823b4ec72f7a",
            "tlsh": "c3117200d2662e0310c9eaa16c6d4696a131880749947d22378f4a7c0fdca7f21fe2bd"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/cors-version/MAL-2026-12026.json"