MAL-2026-7022

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/tslint-conf/MAL-2026-7022.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-7022
Aliases
  • GHSA-wchw-4whx-qhq5
Published
2026-07-08T21:15:42Z
Modified
2026-07-09T13:31:46.726418147Z
Summary
Malicious code in tslint-conf (npm)
Details

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

Source: amazon-inspector (31b464b1646f8e2d36ce68a86af599cc49d5381f08af70302ff01f42957234a1)

The package presents itself as the pino logger (README, index.d.ts, docs/, and lib/ files all reference pinojs/pino) but is published under the unrelated name tslint-conf. Its default export is an Express-style middleware factory whose invocation synchronously calls runJobA, which uses child_process.spawn("node", ["lib/caller.js",...], { detached: true, stdio: "ignore" }) followed by child.unref() to launch a hidden background worker. lib/caller.js performs axios.get against https://peach-eligible-penguin-917.mypinata.cloud/ipfs/bafkreigjnxn5vnn34rc5r43ajwwkmk4akqpm4awmq5gdhakgszpeqiffsu, takes the response body, and passes it to new Function.constructor("require", s) then invokes the resulting function with require, granting the fetched code full Node.js capabilities on the host. The remote content is attacker-controlled (Pinata account under the operator's control), unpinned by hash/signature, and executed unconditionally on every use of the middleware. Combined with the pino cover story, any consumer misled into using this package as their logger triggers remote code execution.

Source: ghsa-malware (fd778fbc5944f702647d34b24bddbfa8e34c8d9255f53cc5d24b1af71482848a)

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": "31b464b1646f8e2d36ce68a86af599cc49d5381f08af70302ff01f42957234a1",
            "id": "IN-MAL-2026-008611",
            "import_time": "2026-07-08T21:27:50.194603715Z",
            "modified_time": "2026-07-08T21:15:42Z",
            "versions": [
                "7.2.1"
            ],
            "source": "amazon-inspector"
        },
        {
            "sha256": "fd778fbc5944f702647d34b24bddbfa8e34c8d9255f53cc5d24b1af71482848a",
            "id": "GHSA-wchw-4whx-qhq5",
            "import_time": "2026-07-09T13:22:08.533117594Z",
            "modified_time": "2026-07-09T12:35:13Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / tslint-conf

Package

Affected ranges

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

Affected versions

7.*
7.2.1

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "541c35bd90653c9d7f93cdadb7f52c281d7a1375ffc9c0e118cf1d9df977dea7",
            "tlsh": "fb01d05e30fa905c416120f5561fe4716031f4673949d5c8378c83928fea5ae6963aed",
            "path": "lib/caller.js"
        },
        {
            "sha256": "2956b023858d706a5e241cd28b845088e5f414c5f70bd5d8cb73cb427d081065",
            "tlsh": "5d213c81b9f11188065cd9c8b569e53a38e3c4377207b9b0e9ec87862bcf2080272ad7",
            "path": "index.js"
        },
        {
            "sha256": "8afbea624a3bf325f9fc70dd69585ad7ae7978e1e881ff0229e55c4133f0616a",
            "tlsh": "655199a742e46f6e4b7300b1a5c275a5ff6f931c7b5e606ddcacc139031d997813114a",
            "path": "README.md"
        }
    ],
    "package_integrity": [
        {
            "filename": "tslint-conf-7.2.1.tgz",
            "hashes": {
                "sha512_sri": "sha512-4y6NVdOLEuPJlrwZ3IgxUTA9/kKavFYzU6ny89fYat+5ePODjnLMV04uJ8huFPKLSRAcmiM/GrUzbuow/EeHwQ==",
                "sha1": "d535ce741965f940edb048883db73c5d9348288a"
            }
        }
    ]
}
cwes
[
    {
        "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/tslint-conf/MAL-2026-7022.json"