MAL-2026-6505

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/pino-zod/MAL-2026-6505.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6505
Aliases
  • GHSA-j7hj-qc4f-x92f
Published
2026-06-26T05:11:13Z
Modified
2026-07-09T22:17:03.543458084Z
Summary
Malicious code in pino-zod (npm)
Details

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

Source: amazon-inspector (92ceffaf94fc190f70c18587857f2f0a674a9699512eec79f5cf738eefaa54ca)

Package advertises itself as a pino+zod logging helper but ships content that does not match that purpose: a dist/discordRelayUpload.js module containing POST/upload code paths and base64 buffer handling, a dist/relayServer.js module, a dist/secretScan/ tree (agentStartupAudit.js, contentScanner.js) that performs fetches against huggingface.co, a dist/hfCredentials.js with base64 decoding, a dist/deploymentDefaults.js with multiple base64 buffers, and a scripts/postinstall-agent.mjs containing GET/ping/id patterns. The presence of a postinstall-agent.mjs under scripts/ is concerning as a possible install-time agent, and the shipped relay/upload/secret-scan modules suggest behavior far outside the declared logging-library scope. However, without traced execution context confirming whether postinstall-agent.mjs is actually invoked by a lifecycle hook, where the base64 blobs decode to, and whether the Discord/HuggingFace endpoints carry installer data outward, the intent cannot be conclusively classified. Routing to human review for inspection of package.json lifecycle hooks, the contents of deploymentDefaults.js base64 payloads, and the data flow into the Discord upload and HuggingFace fetch paths.

Source: ghsa-malware (d57b4e49a62a8ca174c6c14820e5b101d042e3aea94438df19f9b12286a7cf30)

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": "d57b4e49a62a8ca174c6c14820e5b101d042e3aea94438df19f9b12286a7cf30",
            "modified_time": "2026-06-26T05:12:26Z",
            "id": "GHSA-j7hj-qc4f-x92f",
            "source": "ghsa-malware",
            "import_time": "2026-06-26T05:41:02.345091566Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ]
        },
        {
            "sha256": "651be849896c870c1c75ee04f5456ab7100090b688832af0bc822eaea9290ad3",
            "modified_time": "2026-07-09T21:54:29Z",
            "versions": [
                "1.0.122"
            ],
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-009428",
            "import_time": "2026-07-09T22:02:30.569670176Z"
        },
        {
            "sha256": "92ceffaf94fc190f70c18587857f2f0a674a9699512eec79f5cf738eefaa54ca",
            "modified_time": "2026-07-09T21:56:06Z",
            "versions": [
                "1.0.121"
            ],
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-009440",
            "import_time": "2026-07-09T22:02:31.962285852Z"
        }
    ]
}
References
Credits

Affected packages

npm / pino-zod

Package

Affected ranges

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

Affected versions

1.*
1.0.121
1.0.122

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "cbf70b0d8654138a0b4dfcb152824c85fecab500e1a5fade53c2049da4c0dc48",
            "tlsh": "e1f16549b8e7b0100663b5f8861bc8973bdcad07260ed444b35e93956f1f831a3b76e6",
            "path": "dist/deploymentDefaults.js"
        },
        {
            "sha256": "debe8ff010dd0e4bec0af85cbd8708ba345158fc103b9fe68eb12b4d68539c19",
            "tlsh": "d4e296fab5f724311162b6698b5bd0057328b147741eeca47a8ca29c9f9c025c2f7fc6",
            "path": "dist/discordRelayUpload.js"
        },
        {
            "sha256": "bf0091702bbc62eff2319360ab7103a33fee8f5bfad4e63aa359175285de7f49",
            "tlsh": "cae184062ef6902001779079912be01576b0703f6ae1d5f2f69ddec9af12c768ae3dc1",
            "path": "dist/hfCredentials.js"
        },
        {
            "sha256": "adc4f1fb07a18cd4b1d584f2f58c0c4fdaf0676c6bd02703cc9595f44e10def0",
            "tlsh": "ed93b68a69f360324763f2bd5b5b8001b339d1077558ddd4fa9c8258af8d92883f1be9",
            "path": "dist/relayServer.js"
        },
        {
            "sha256": "185e5a9b6387d3791464f4ade86a394af49115e826ddc1cd5e206e573b0ef7eb",
            "tlsh": "b6e2fb9a69f32432826371be5a4f5005f660b4272148e8e47a5cc299ff454b8d3f7fd8",
            "path": "dist/secretScan/agentStartupAudit.js"
        },
        {
            "sha256": "5f983523fea613c052e726cf94f86c894e72c34261a538e6e6f3999cd76191a5",
            "tlsh": "7212824a6af320514d2330fe1b8b8500b97aa847351cdd28be9c83906f5597c9af7bdc",
            "path": "dist/secretScan/contentScanner.js"
        },
        {
            "sha256": "36c301a61abec8b3658aa278f9cdcdfa0edf6409f4eec68449724d68ef222ea8",
            "tlsh": "34b1b70368e9947041fee3d25953b90b7afdf7153302acc5766e46b90b6bc31026be0a",
            "path": "scripts/encode-deployment.mjs"
        },
        {
            "sha256": "f637df68b8c097e238ae81473a6a5c3f4ace636044356f7dbb01fef6ca5f579c",
            "tlsh": "1d92d88ce6e71a7606a1e79d7a1f150267a0d1070648e4b4f0dd82887f2d13d83b7ebe",
            "path": "scripts/postinstall-agent.mjs"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/pino-zod/MAL-2026-6505.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "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."
    }
]