MAL-2026-19257

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/hauntview/MAL-2026-19257.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-19257
Aliases
  • GHSA-v244-m2jr-cmc2
Published
2026-11-13T18:43:16Z
Modified
2026-11-16T22:45:05Z
Summary
Malicious code in hauntview (npm)
Details

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

Source: amazon-inspector (36aa7d594b271a7fcc379e96127fca987597c096dadb6c5c89956b35dcf14302)

hauntview@0.2.9 contains an obfuscated IIFE embedded in two execution paths. scripts/postinstall.mjs is prepended with a large obfuscated loader, hidden behind a run of tab characters before the legitimate Playwright-install logic; this runs on every npm install. The same loader is duplicated at the top of dist/cli.js (the file registered as the haunt / hauntview bin entry), so it also fires whenever the installed CLI is invoked, including in environments where the postinstall body is skipped (CI / SKIP_PLAYWRIGHT_INSTALL paths). The loader defines a hand-rolled parameterised shuffle string decoder (b/c/d aliased as spin/splitLane/peel) seeded by two 6-tuple constants (NX, SX) over an opaque string array, resolves a method name from a decoded substring that maps to the Function constructor on a function object, and uses it to dynamically compile and invoke decoded source with the argument 2509. The combination of whitespace-hidden placement before a benign Playwright installer, a custom shuffle decoder, dynamic Function-constructor compilation, and two independent install/invocation triggers is the fingerprint of a supply-chain dropper, not a legitimate build step.

Source: ghsa-malware (1c1beaab001c7335a242aa75f38d4a580710975987ab0b180128f0cea70a54b2)

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": "GHSA-v244-m2jr-cmc2",
            "import_time": "2026-11-13T19:17:21.237565773Z",
            "modified_time": "2026-11-13T18:43:16Z",
            "sha256": "1c1beaab001c7335a242aa75f38d4a580710975987ab0b180128f0cea70a54b2",
            "source": "ghsa-malware",
            "versions": [
                "0.2.9"
            ]
        },
        {
            "id": "IN-MAL-2026-022799",
            "import_time": "2026-11-16T22:36:31.281166848Z",
            "modified_time": "2026-11-16T22:25:02Z",
            "sha256": "36aa7d594b271a7fcc379e96127fca987597c096dadb6c5c89956b35dcf14302",
            "source": "amazon-inspector",
            "versions": [
                "0.2.9"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / hauntview

Package

Affected ranges

Affected versions

0.*
0.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": "scripts/postinstall.mjs",
            "sha256": "c710065d8255b052aba6d756a0897314905cfe038b0c3d4dbe177713815c5d04",
            "tlsh": "ef62af4052190438eac1765a9e2f5054eb3104b9358f7190f76fb1743e1ab0b85bab5f"
        },
        {
            "path": "dist/cli.js",
            "sha256": "cb8be4329b8b8265884db4b7fbc4173f041bca5ea08795715fd62a6463ca3f15",
            "tlsh": "0b84946b44ba142304b3786a3e9b5186623144273d48fd983f9c43941f4f96e92f7bee"
        }
    ],
    "package_integrity": [
        {
            "filename": "hauntview-0.2.9.tgz",
            "hashes": {
                "sha1": "f051f15465c3d317624caac93b141a373e921351",
                "sha512_sri": "sha512-kZKR7cQd+4cqkHQzWsHLIKH7AVkTgwGfxR+u9JS/K1FnWAQhMq5I30Hs8icCLUGOd9Im37yCSooJ87rIX1Pmdg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/hauntview/MAL-2026-19257.json"