MAL-2026-6470

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/chlklib/MAL-2026-6470.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6470
Aliases
  • GHSA-pw26-7j7h-jhf5
Published
2026-06-25T18:27:36Z
Modified
2026-08-18T15:46:29Z
Summary
Malicious code in chlklib (npm)
Details

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

Source: amazon-inspector (b08a933891c92fdec26fbadf4921d2e08ff101126fb656a2b57d747fefa9d0d4)

Package name chlklib is a one-character deletion of the popular chalk package and replicates chalk's public API surface (Chalk, chalkStderr, supportsColor, colorNames). On require/import, the main entry invokes getOriginal() at module top level, which POSTs to https://funnystore.org/lib/index.php, XOR-decodes the response body with a hardcoded key, and passes the result to eval() (see dist/vendor/original-color/index.cjs around line 55, invoked from dist/index.cjs). Any developer who installs and requires this package — most likely after mistyping chalk — immediately executes attacker-controlled JavaScript fetched at runtime from funnystore.org. The remote endpoint is mutable and unrelated to the package's stated 'terminal prompt' purpose, giving the operator full RCE on the installer's machine on every require. The XOR-then-eval obfuscation and typosquat-with-replicated-API shape together match a deliberate dropper campaign rather than any legitimate use case.

Source: ghsa-malware (29de6d310a66d9c76507b519e02a5543cdc8bec361312651bef0bbb8524f4ae5)

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-007526",
            "import_time": "2026-06-25T19:13:49.230688071Z",
            "modified_time": "2026-06-25T18:27:36Z",
            "sha256": "136a65e3a9bd3712d0e949a0a9b56747918d7d1436cbad01e204ab23ff5e990f",
            "source": "amazon-inspector",
            "versions": [
                "1.2.3"
            ]
        },
        {
            "id": "IN-MAL-2026-007527",
            "import_time": "2026-06-25T19:13:49.311925244Z",
            "modified_time": "2026-06-25T18:27:37Z",
            "sha256": "766413ce8bb9e5a330bf1a6f878e75a03528339df61dac409a66a06218e082d4",
            "source": "amazon-inspector",
            "versions": [
                "1.2.2"
            ]
        },
        {
            "id": "IN-MAL-2026-007529",
            "import_time": "2026-06-25T19:13:49.484821524Z",
            "modified_time": "2026-06-25T18:27:41Z",
            "sha256": "b08a933891c92fdec26fbadf4921d2e08ff101126fb656a2b57d747fefa9d0d4",
            "source": "amazon-inspector",
            "versions": [
                "1.2.0"
            ]
        },
        {
            "id": "IN-MAL-2026-007528",
            "import_time": "2026-06-25T19:13:49.3560492Z",
            "modified_time": "2026-06-25T18:27:38Z",
            "sha256": "fe013bde99ee7eafc14dc4db6ac67e239dd3ee3be046c2444c69b07181b236a3",
            "source": "amazon-inspector",
            "versions": [
                "1.2.1"
            ]
        },
        {
            "id": "GHSA-pw26-7j7h-jhf5",
            "import_time": "2026-08-18T15:28:59.439573504Z",
            "modified_time": "2026-08-18T14:35:35Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "29de6d310a66d9c76507b519e02a5543cdc8bec361312651bef0bbb8524f4ae5",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / chlklib

Package

Affected ranges

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

Affected versions

1.*
1.2.0
1.2.1
1.2.2
1.2.3

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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "dist/vendor/original-color/index.cjs",
            "sha256": "9faf80b37a3d9554bbe8b3ff443a6a114ce7c29ead29deaef766f2701cc52243",
            "tlsh": "6251c647a6f4615a11f244fa632faa0177bea2e81108d958f6acc2f50fc642144d4aef"
        },
        {
            "path": "package.json",
            "sha256": "f393aaa919fad51bf578515115f26444534b2957186fc22bc9a24fb8e47465a3",
            "tlsh": "8031b318c8b06ed77aca26b4aa5e8b56667140070a546f0433cd412c0fcc2df8aff1ce"
        }
    ],
    "package_integrity": [
        {
            "filename": "chlklib-1.2.3.tgz",
            "hashes": {
                "sha1": "d6a4a13aa087d2a0328b196fe0487a8a7aaf2e26",
                "sha512_sri": "sha512-cPRZlR3K2900J28CU0nKgvvVtn5mgWHdVKiQm51kQ0tWH6vrcKh0P4yRDbF2NadaRh7myQl28LgWAtLM2An0nQ=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/chlklib/MAL-2026-6470.json"