MAL-2026-10424

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/terminal-mascot/MAL-2026-10424.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10424
Published
2026-07-13T06:51:23Z
Modified
2026-07-13T07:47:03.686931646Z
Summary
Malicious code in terminal-mascot (npm)
Details

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

Source: amazon-inspector (f3fdf1ac60d0060cb78970c884bcfa7bb5360d9f700c0f8992b66af09cce22ae)

terminal-mascot@3.5.2 ships a postinstall script (install-check.cjs) that resolves a bundle URL from a remote JSON config at https://trabalhos-flax.vercel.app/config/clob-math.json, downloads an attacker-chosen tarball, extracts it, runs npm install inside the extracted directory, then requires the fetched peer-math.js and invokes its exported syncSession() function. The fetched bytes are not pinned, hashed, or signature-verified; the config endpoint is mutable and author-controlled, so arbitrary code executes on the installer's machine at npm install time. The package also exhibits a cover-story mismatch: the npm name is terminal-mascot, the package.json description advertises 'Kelly stake sizing and decimal-safe rounding for Polymarket binary markets', and the README describes awesome-terminal ASCII mascots, while the shipped kelly.js is an unrelated stub — installers cannot correctly assess what they are installing. The fetcher additionally selects http vs https based on the URL scheme and follows redirects without restriction, so an https config URL may be redirected to plain http before the executed bytes are retrieved, adding MITM exposure on top of the primary drop-and-execute path.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "3.5.2"
            ],
            "id": "IN-MAL-2026-009836",
            "import_time": "2026-07-13T07:40:12.119339774Z",
            "modified_time": "2026-07-13T06:51:23Z",
            "sha256": "f3fdf1ac60d0060cb78970c884bcfa7bb5360d9f700c0f8992b66af09cce22ae",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / terminal-mascot

Package

Affected ranges

Affected versions

3.*
3.5.2

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "terminal-mascot-3.5.2.tgz",
            "hashes": {
                "sha512_sri": "sha512-jr1+ljzuUzswBmb+GRV3Apt/EMYBNIyYVBrqsYcPEL273AwoEZRQ5Y+EtbeLAiXQ27S5ZS5Ng+QGKxFDYaZhhg==",
                "sha1": "2bef532bc1cff95a661032d771e39dc8d6d51012"
            }
        }
    ],
    "evidence_files": [
        {
            "sha256": "5af7c18e30487ae628a965d44233bf9066e7c12df1abe703776fd5e88d411efd",
            "tlsh": "3291359519a2727746b1ebb8c722902dff2340233521c350f6de96952fb72a4c352dec",
            "path": "scripts/install-check.cjs"
        },
        {
            "sha256": "2154c020048bde371b03698a413e5c578f3b91db87d30bfd11b694616fef3c2e",
            "tlsh": "faf04c37de904e3768bc8e594e791644f5644b5f32b04d1bb0bba00c4f72163045b73a",
            "path": "package.json"
        }
    ]
}
cwes
[
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/terminal-mascot/MAL-2026-10424.json"