MAL-2026-12480

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tms-x-headers/MAL-2026-12480.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12480
Aliases
  • GHSA-35hv-47hh-35xx
Published
2026-08-05T12:37:59Z
Modified
2026-08-26T01:18:21Z
Summary
Malicious code in tms-x-headers (npm)
Details

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

Source: amazon-inspector (2d2d5c1a35629a169457029c69505622c3f6a7b6bdc8958480aea47ffe08266b)

On require() of the package, helpers.js fetches a platform-specific binary from hostnames assembled by concatenating string fragments (oob-worker.cf101-adf.workers.dev and sibling cf103-070 / cf100-416 workers.dev hosts), with a DNS-TXT fallback channel resolved through fragment-joined *.dl.well1.site names. The fetched bytes are written to a temp file with a cover-story name (dotnet_diag.exe on Windows,.cache_ on Unix), chmod 0755, and spawned detached via cmd.exe /c start or /bin/sh -c with no hash or signature verification. The child_process module is also required via a split string ("child_" + "process") in lib/telemetry.js. The destination hosts are not the package publisher, are deliberately fragmented to evade static string matching, and the temp filename mimics legitimate.NET diagnostics tooling. Installing or loading the package therefore runs attacker-controlled native code on the installer's host.

Source: ghsa-malware (dc4e635fba20ad19c36644478038a2ae0339d2429dde01c41aa8b8de446644c6)

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-014736",
            "import_time": "2026-08-05T13:08:42.122334165Z",
            "modified_time": "2026-08-05T12:37:59Z",
            "sha256": "2d2d5c1a35629a169457029c69505622c3f6a7b6bdc8958480aea47ffe08266b",
            "source": "amazon-inspector",
            "versions": [
                "20.2.9"
            ]
        },
        {
            "id": "GHSA-35hv-47hh-35xx",
            "import_time": "2026-08-25T16:26:04.993053836Z",
            "modified_time": "2026-08-25T16:07:43Z",
            "sha256": "dc4e635fba20ad19c36644478038a2ae0339d2429dde01c41aa8b8de446644c6",
            "source": "ghsa-malware",
            "versions": [
                "20.2.9"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / tms-x-headers

Package

Name
tms-x-headers
View open source insights on deps.dev
Purl
pkg:npm/tms-x-headers

Affected ranges

Affected versions

20.*
20.2.9

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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "_helpers.js",
            "sha256": "79c22c531098339baac8354bba8a181b2a00440bb28d45de78d2598bd48e12ad",
            "tlsh": "50a1869a0269301d4bb0dbe597174416f65bf6533280c6c4f7ac69941fb712483b2efc"
        }
    ],
    "package_integrity": [
        {
            "filename": "tms-x-headers-20.2.9.tgz",
            "hashes": {
                "sha1": "858c9c239e05a49fbb9535094eacc7b5589788a2",
                "sha512_sri": "sha512-eX7PVXH+ohClqnZCpMcJbZNP+zHywFGxThvdxWODaC+PCVjzBL6n5twGWTe0u2rpymt9s9d4irQOeBvZ7HVzfA=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tms-x-headers/MAL-2026-12480.json"