MAL-2026-12011

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@keyv/compress-lz4/MAL-2026-12011.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12011
Aliases
  • GHSA-g3gv-3mfc-gffc
Published
2026-08-04T13:01:33Z
Modified
2026-08-05T10:05:28.062717819Z
Summary
Malicious code in @keyv/compress-lz4 (npm)
Details

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

Source: amazon-inspector (cd7fac64e01bf267ca0ee1c3234782fd17c24865d3be3e0cbfa26b65fe83c1a3)

Package is an LZ4 compression adapter for the keyv key-value store. The dist bundles (dist/index.cjs and dist/index.mjs) contain Buffer.from(..., 'base64')/.toString() calls, which is the expected shape for a compression/serialization codec that encodes and decodes binary payloads. No lifecycle scripts fetching remote content, no environment-variable or credential-path reads, no network exfiltration destinations, and no eval/exec of decoded content are present. The pattern-match on Buffer.from + base64 alone does not indicate installer-side harm.

Source: ghsa-malware (89a8da4b04376d8125fe67c9ca4c749a6d4633764dcbcedc9988c5cd28fd14a3)

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": [
        {
            "versions": [
                "6.0.0"
            ],
            "import_time": "2026-08-05T00:10:18.065184886Z",
            "sha256": "89a8da4b04376d8125fe67c9ca4c749a6d4633764dcbcedc9988c5cd28fd14a3",
            "id": "GHSA-g3gv-3mfc-gffc",
            "modified_time": "2026-08-04T13:01:33Z",
            "source": "ghsa-malware"
        },
        {
            "versions": [
                "6.0.0"
            ],
            "sha256": "cd7fac64e01bf267ca0ee1c3234782fd17c24865d3be3e0cbfa26b65fe83c1a3",
            "import_time": "2026-08-05T09:27:47.395626112Z",
            "id": "IN-MAL-2026-014248",
            "modified_time": "2026-08-05T08:22:47Z",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @keyv/compress-lz4

Package

Name
@keyv/compress-lz4
View open source insights on deps.dev
Purl
pkg:npm/%40keyv/compress-lz4

Affected ranges

Affected versions

6.*
6.0.0

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "compress-lz4-6.0.0.tgz",
            "hashes": {
                "sha512_sri": "sha512-/cjX6MGrnJvAhAs3GnZh5h3/LIjOIIxYgZUVw6BazzLhOxkKHpjJjm/aYO5CQQaZ3xPUdKrvHXljwy4RaRe3qQ==",
                "sha1": "c55980384ad0399de29354752cdc3b7a64f158f0"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "0301f103fee0f493104dbcba4d03dd0d00d7c1862a3738abd22c74d92da64c99d9356a",
            "sha256": "ed49ca995d7a65168512366c21357d08b5eeb901a109214b8ba3f3c5ba7c9582",
            "path": "dist/index.cjs"
        },
        {
            "tlsh": "49f04c13fef6e493105e78750d03dd0d02f7a1452e13588b963c69e96aba454ec1359f",
            "sha256": "0984fb1c43b77ccdcbd63e44101accb1b9dbdbe84c1deb92113977b64f9373f8",
            "path": "dist/index.mjs"
        }
    ]
}
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"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@keyv/compress-lz4/MAL-2026-12011.json"