MAL-2026-5994

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ts-webplug/MAL-2026-5994.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5994
Aliases
  • GHSA-m637-4v9j-499p
Published
2026-06-17T04:23:11Z
Modified
2026-07-10T03:31:48Z
Summary
Malicious code in ts-webplug (npm)
Details

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

Source: amazon-inspector (a120eb8e3f6ca34493b7f282544523ab60137e8388148b191f46cda094e50789)

The package impersonates the pino logger (README titled 'chai-mocks', badges linking to pinojs/pino, module export named pino) while its actual package name ts-webplug is unrelated. When a consumer requires the package and invokes its exported middleware, index.js spawns lib/caller.js as a detached Node child process. lib/caller.js performs axios.get(...) against https://jsonhosting.com/api/json/9343c2ce/raw, extracts the cookie field from the response, and passes it to new Function.constructor('require', s)(require) — evaluating attacker-controlled JavaScript with full require access in the consumer's Node process. The remote URL is additionally concealed in a spoofed process.env object where DEV_API_KEY is a base64 blob decoding to a jsonkeeper.com URL (a second mutable, anonymous-host pointer in lib/const.js decodes to https://jsonkeeper.com/b/4NAKK). The fetch host is a mutable anonymous paste service — today's payload can be swapped for anything at any time — and the executed code runs with full Node privileges on the installer/consumer machine.

Source: ghsa-malware (ab49780fe41f3794685e5956a0d5a7c3ecdf35303b839d14f2b2d6c11d20032e)

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-006883",
            "import_time": "2026-06-17T05:45:42.115211051Z",
            "modified_time": "2026-06-17T04:23:11Z",
            "sha256": "2a205cee3f545c9dd5083055f8dad50c5e131603bf50d37bbb3f7ef5a744d88f",
            "source": "amazon-inspector",
            "versions": [
                "3.0.5"
            ]
        },
        {
            "id": "GHSA-m637-4v9j-499p",
            "import_time": "2026-07-06T18:54:03.605662335Z",
            "modified_time": "2026-07-06T18:03:58Z",
            "sha256": "ab49780fe41f3794685e5956a0d5a7c3ecdf35303b839d14f2b2d6c11d20032e",
            "source": "ghsa-malware",
            "versions": [
                "3.0.5"
            ]
        },
        {
            "id": "IN-MAL-2026-009192",
            "import_time": "2026-07-09T16:20:49.953011656Z",
            "modified_time": "2026-07-09T15:41:50Z",
            "sha256": "4097a5eb4f12223bba1d71dc7e04f525df3dae72db5911d46bc988f289eb9351",
            "source": "amazon-inspector",
            "versions": [
                "3.0.6"
            ]
        },
        {
            "id": "IN-MAL-2026-009191",
            "import_time": "2026-07-09T16:20:49.87366308Z",
            "modified_time": "2026-07-09T15:41:43Z",
            "sha256": "6b45f0926ced2cc9a58cf059d69dfdfe0f5e2d0c772aa25d350b6088f57d5056",
            "source": "amazon-inspector",
            "versions": [
                "3.0.8"
            ]
        },
        {
            "id": "IN-MAL-2026-009193",
            "import_time": "2026-07-09T16:20:50.044984271Z",
            "modified_time": "2026-07-09T15:41:58Z",
            "sha256": "a120eb8e3f6ca34493b7f282544523ab60137e8388148b191f46cda094e50789",
            "source": "amazon-inspector",
            "versions": [
                "3.0.7"
            ]
        },
        {
            "id": "GHSA-m637-4v9j-499p",
            "import_time": "2026-07-10T03:23:39.555270405Z",
            "modified_time": "2026-07-10T02:47:18Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "cdc68525efe47411d3ce86b63014de43219fb1ea48e7d703a7db716e41b7de86",
            "source": "ghsa-malware",
            "versions": [
                "3.0.5"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / ts-webplug

Package

Affected ranges

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

Affected versions

3.*
3.0.5
3.0.6
3.0.7
3.0.8

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"
    },
    {
        "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.",
        "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": "lib/caller.js",
            "sha256": "6e9c6643cf66d24db6350eb1c03d6f0f862243ee18ab557c9be20d847dff9f36",
            "tlsh": "c2017b4a30fa605c015510f64b1fe4317012e4173c49e5c5378c87514fea5ae6963eed"
        },
        {
            "path": "index.js",
            "sha256": "2956b023858d706a5e241cd28b845088e5f414c5f70bd5d8cb73cb427d081065",
            "tlsh": "5d213c81b9f11188065cd9c8b569e53a38e3c4377207b9b0e9ec87862bcf2080272ad7"
        }
    ],
    "package_integrity": [
        {
            "filename": "ts-webplug-3.0.5.tgz",
            "hashes": {
                "sha1": "9a8c117f5c858572f806a8e03e7a5259034ec9b6",
                "sha512_sri": "sha512-Cu7DZU9tIoU2WPKGYLjSvvxZFwwhnMZzfxui+9lWUU9Mj0Lfpszh5f13P1VACDxY90dHAWjxGIpYxJu9/5lbkg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ts-webplug/MAL-2026-5994.json"