MAL-2026-15556

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/js-tokens-array/MAL-2026-15556.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-15556
Published
2026-08-29T02:14:09Z
Modified
2026-08-29T02:30:11.877001146Z
Summary
Malicious code in js-tokens-array (npm)
Details

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

Source: amazon-inspector (3f8ed5536e88f2c77c432b868367e25dea9244052779e825999e6e4324dcc35b)

index.js runs getToken() at module load time. The destination URL is reconstructed from a numeric char-code array via String.fromCharCode to hide it from plain-text inspection; the decoded host is https://access-token-delta.vercel.app/. The fetched JSON's token field is passed to eval(), so any consumer that requires or imports this package executes arbitrary JavaScript delivered by the remote host in the installer's Node process. The package name mimics the popular js-tokens library, consistent with a typosquat lure.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-019143",
            "modified_time": "2026-08-29T02:14:24Z",
            "import_time": "2026-08-29T02:22:21.291695155Z",
            "source": "amazon-inspector",
            "sha256": "35bd7f6a22d21fe244f3564f2b9fdd874a7824637fc6cc2d9726b2eeb9b88e4f",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-019141",
            "modified_time": "2026-08-29T02:14:09Z",
            "import_time": "2026-08-29T02:22:21.114202894Z",
            "source": "amazon-inspector",
            "sha256": "3f8ed5536e88f2c77c432b868367e25dea9244052779e825999e6e4324dcc35b",
            "versions": [
                "1.1.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / js-tokens-array

Package

Affected ranges

Affected versions

1.*
1.0.0
1.1.1

Database specific

cwes
[
    {
        "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"
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "js-tokens-array-1.0.0.tgz",
            "hashes": {
                "sha512_sri": "sha512-gWUxZd0+uaCarRmXWKCwn0gBNB0RCyDUQriN3basdxyUIjsTSMSKXnJVH4AuajjrzctzlaYzVgL7SAENci6IQQ==",
                "sha1": "0830e93e52aeec626f357240218bd6bf0e877bf7"
            }
        }
    ],
    "evidence_files": [
        {
            "path": "index.js",
            "tlsh": "e2f0279118bc4975023fe46a0a0f1816a508e313192de8c3b3cc4f442f198697d766c8",
            "sha256": "e5c2f28ccd42f588a2cf725917589be397b5ed7a6319ce5bdca0ab026d4b65f7"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/js-tokens-array/MAL-2026-15556.json"