MAL-2026-6919

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/chai-chain-dom/MAL-2026-6919.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6919
Aliases
  • GHSA-2gcw-jv94-7mfq
Published
2026-07-07T15:13:22Z
Modified
2026-07-09T16:31:53.687136303Z
Summary
Malicious code in chai-chain-dom (npm)
Details

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

Source: amazon-inspector (f1964693dd7c2bdd9ca7ae20eb441597571b1b78a689bd97648998c6442bda99)

Package impersonates the pino logger (exports module.exports.pino, README uses pino badge, keywords mimic pino) but its actual behavior is a remote code loader. When a consumer requires the package and invokes the exported middleware/pino function, index.js spawns a detached node lib/caller.js subprocess (detached:true, stdio:ignore, child.unref()) to hide the activity from the parent process. lib/caller.js then performs an axios GET against https://jsonkeeper.com/b/HIOEN, takes the returned JavaScript from the response's model field, and evaluates it via new Function.constructor("require", src), passing the live require — granting the remotely fetched attacker-controlled code full Node capability (filesystem, network, child_process, environment). jsonkeeper.com is a public paste service whose content the author can change at any time, so the payload is unpinned and mutable. The masquerade-as-pino name and the detached/stdio-ignored spawn indirection are consistent with deliberate delivery of arbitrary code to installers.

Source: ghsa-malware (0ceea282f7481deff84cb8d5904fd639408b70386b6184ac1416f887e3be2819)

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": [
        {
            "sha256": "0ceea282f7481deff84cb8d5904fd639408b70386b6184ac1416f887e3be2819",
            "id": "GHSA-2gcw-jv94-7mfq",
            "modified_time": "2026-07-07T15:13:23Z",
            "import_time": "2026-07-07T15:15:50.678349275Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "source": "ghsa-malware"
        },
        {
            "versions": [
                "1.3.9"
            ],
            "id": "IN-MAL-2026-009116",
            "modified_time": "2026-07-09T15:30:36Z",
            "sha256": "0db07a9f0d5ed59e8fe113e64d5499195a248152f2708415e43473a91d5136d3",
            "import_time": "2026-07-09T16:20:42.128587288Z",
            "source": "amazon-inspector"
        },
        {
            "sha256": "4454a540a32dc78f7ceb14b595949b32b018453f6fcae921b07c6267222232cd",
            "id": "IN-MAL-2026-009117",
            "import_time": "2026-07-09T16:20:42.204779932Z",
            "modified_time": "2026-07-09T15:30:44Z",
            "versions": [
                "1.3.7"
            ],
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.3.8"
            ],
            "id": "IN-MAL-2026-009119",
            "modified_time": "2026-07-09T15:31:03Z",
            "sha256": "f1964693dd7c2bdd9ca7ae20eb441597571b1b78a689bd97648998c6442bda99",
            "import_time": "2026-07-09T16:20:42.47172358Z",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / chai-chain-dom

Package

Affected ranges

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

Affected versions

1.*
1.3.7
1.3.8
1.3.9

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "0069e47baccc2baeb9b58ed0bf558a1a99c98a944450268e7598c381e957e3c6",
            "tlsh": "aef09e1e34f13058477660e59f4b11316012a022344ac5c9734c43920fda56f66777ec",
            "path": "lib/caller.js"
        },
        {
            "sha256": "ea1e8160ea3c6334d3dc1e761606df53895aa879dcc6593942cb5a4a56ee8eef",
            "tlsh": "093173e785e46ab257b3017299c37594ef5f631c7b6a60fddcac5129170d993c13020a",
            "path": "README.md"
        },
        {
            "tlsh": "8ac08c8351e4a89704301773610ca995f2a1d26f0c840b0331f594844a396a93840fbb",
            "sha256": "9879ffb0bf61edef7e9b90ddc5fac9770c514c0cdecd9a07b15e8a677e6f8f74",
            "path": "lib/const.js"
        }
    ]
}
cwes
[
    {
        "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."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/chai-chain-dom/MAL-2026-6919.json"