MAL-2026-5734

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/node-denv/MAL-2026-5734.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5734
Aliases
  • GHSA-8mfj-gmpr-xqqr
Published
2026-06-13T07:00:24Z
Modified
2026-07-23T07:52:05.733881408Z
Summary
Malicious code in node-denv (npm)
Details

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

Source: amazon-inspector (1b0701ad772209918c78eb4d038cce43946517f3558cbec1988c121c115a641d)

node-denv presents itself as a pino-compatible logging middleware (index.js exports module.exports.pino = middleware and mimics pino's option shape including DEFAULTLEVELS, formatters.bindings, redact, and customLevels). When a consumer instantiates the middleware, the package spawns a detached node lib/caller.js child process. lib/caller.js performs an HTTPS GET against https://jsonkeeper.com/b/EXSIF, reads the .cookie field from the JSON response, and passes it to new Function.constructor("require", s) invoked with the real require — granting the remotely-fetched JavaScript full Node.js capabilities (filesystem, network, childprocess, env). The fetch is retried up to 5 times. A second jsonkeeper.com payload URL (https://jsonkeeper.com/b/ZK45J) is base64-encoded as DEV_API_KEY in lib/const.js as a fallback C2. jsonkeeper.com is an anonymous mutable JSON paste host — the attacker can change the executed payload at any time without republishing the package. The pino impersonation lures developers searching for the popular logger into installing this package, at which point any normal use triggers remote code execution on the installer's machine.

Source: ghsa-malware (39fd50e1c53ebcbf807d385f8a99cca3d059175cf50b3819571029c812e719fb)

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": [
        {
            "import_time": "2026-06-13T07:25:39.455863348Z",
            "source": "amazon-inspector",
            "modified_time": "2026-06-13T07:00:24Z",
            "sha256": "1b0701ad772209918c78eb4d038cce43946517f3558cbec1988c121c115a641d",
            "id": "IN-MAL-2026-006319",
            "versions": [
                "1.3.5"
            ]
        },
        {
            "import_time": "2026-06-13T07:25:39.555890651Z",
            "source": "amazon-inspector",
            "modified_time": "2026-06-13T07:00:25Z",
            "sha256": "86a9df69748eedf7adab541a4701076fcfede5edbb2c492c29e8094cf2efc9ad",
            "id": "IN-MAL-2026-006320",
            "versions": [
                "1.3.5"
            ]
        },
        {
            "import_time": "2026-06-29T17:14:01.257636327Z",
            "source": "ghsa-malware",
            "modified_time": "2026-06-29T16:32:54Z",
            "sha256": "39fd50e1c53ebcbf807d385f8a99cca3d059175cf50b3819571029c812e719fb",
            "id": "GHSA-8mfj-gmpr-xqqr",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ]
        },
        {
            "import_time": "2026-07-09T09:16:39.705394995Z",
            "source": "reversing-labs",
            "modified_time": "2026-07-07T13:01:06Z",
            "sha256": "3d2c46d0a2d44366d9c2a27ba2db4fa00f807ba527970cd095150d0a83b3a1d1",
            "id": "RLMA-2026-05176",
            "versions": [
                "1.3.5"
            ]
        },
        {
            "import_time": "2026-07-10T16:54:13.236257022Z",
            "source": "ghsa-malware",
            "modified_time": "2026-07-10T16:09:55Z",
            "sha256": "8de51a9cbc1d29a706435bbbcc9856312ed5e8687adbb01c83d1064c5b7dfaae",
            "id": "GHSA-8mfj-gmpr-xqqr",
            "versions": [
                "1.3.5"
            ]
        },
        {
            "import_time": "2026-07-20T13:15:02.891918301Z",
            "source": "reversing-labs",
            "modified_time": "2026-07-20T10:51:41Z",
            "sha256": "8602f0f9a7135edb79fd39051b1cd4623a770e526d09c079bf73eed8532875f4",
            "id": "RLUA-2026-05582"
        }
    ]
}
References
Credits

Affected packages

npm / node-denv

Package

Affected ranges

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

Affected versions

1.*
1.3.5

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/node-denv/MAL-2026-5734.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "c94c68398967a72596733d62b40d3b2df9490056a3b25bfd96333d0a88d84624",
            "path": "lib/caller.js",
            "tlsh": "e701cb8f30fd101c019122e66b1fe4327010e85b390ae4d4374c87521ffa5aeaa53ede"
        },
        {
            "sha256": "32e82853dd646aac388b78f868241267a5e6483d847df3d4c843f8100590d469",
            "path": "index.js",
            "tlsh": "30213f8175f111480658d9c8b569e5363ce3c4377207b9b0e9ecb7862bcf20c0272ad7"
        },
        {
            "sha256": "9879ffb0bf61edef7e9b90ddc5fac9770c514c0cdecd9a07b15e8a677e6f8f74",
            "path": "lib/const.js",
            "tlsh": "8ac08c8351e4a89704301773610ca995f2a1d26f0c840b0331f594844a396a93840fbb"
        }
    ],
    "ips": [
        "104.16.212.131",
        "104.16.11.34",
        "10.1.0.2"
    ],
    "package_integrity": [
        {
            "filename": "node-denv-1.3.5.tgz",
            "hashes": {
                "sha512_sri": "sha512-XMA7YaAqsJQ2faeRQiRnrYFbnCxJ5eltibJfJtnC1HkzEcT/xHnvW7b4B93H0bDPSfquuEb94nZwQ83ROZcRnQ==",
                "sha1": "570d4ebf7b96d9bde20223846382d04465536f44"
            }
        }
    ]
}
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."
    }
]