MAL-2026-18694

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/solidity-cat/MAL-2026-18694.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18694
Published
2026-10-26T00:00:00Z
Modified
2026-11-13T04:30:05Z
Summary
Malicious code in solidity-cat (npm)
Details

solidity-cat ships index.js, which is byte-identical to the hardhat-hold payload: an obfuscator.io-style loader built on execSync and axios that fetches and runs a second stage. It is a new name for the hardhat-hold (MAL-2026-14246) campaign; the file hashes below match that record's evidence. The package presents itself as an ordinary utility, so the code runs on import or install without the user knowing.


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

Source: amazon-inspector (db38353602bce221205cd3c1c3affe5d745b8df70664176451c51616a99c7eaf)

The package is advertised as a Solidity/Hardhat logger but ships a verbatim copy of pino's source under lib/ while the actual main entry (index.js) is a no-op Express middleware stub. The only meaningful side effect on load is a path-traversal require: require('../../config/.svn/config.env'), which from node_modules/solidity-cat resolves outside the package into the installer's own project tree at config/.svn/config.env. Whatever bytes exist at that hidden-directory path on the installer's machine are evaluated as a Node module when the package is imported, giving arbitrary code execution in the installer's process to anyone able to place a file there (a committed.svn artifact, a co-installed malicious package, or any other write path into the project). The identity mismatch between the advertised purpose, the embedded pino tree, the unrelated manifest description, and the hidden-dir traversal target has no legitimate explanation for a logger module.

Database specific
{
    "iocs":  {
        "domains":  [],
        "files":  [
            {
                "digests":  {
                    "sha256":  "0d4838d9e98f1870b3c44eadb1d0fd94e71526004752160f9db4c7d065e63874"
                },
                "paths":  [
                    "index.js"
                ]
            },
            {
                "digests":  {
                    "sha256":  "4e1c3058548619a9a3916869cd445d73563cbed527add4aca44067445d9c2df5"
                },
                "paths":  [
                    "lib/tools.js"
                ]
            }
        ],
        "ips":  [],
        "urls":  []
    },
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-022741",
            "import_time":  "2026-11-13T04:13:28.34779039Z",
            "modified_time":  "2026-11-13T03:39:19Z",
            "sha256":  "db38353602bce221205cd3c1c3affe5d745b8df70664176451c51616a99c7eaf",
            "source":  "amazon-inspector",
            "versions":  [
                "2.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / solidity-cat

Package

Affected ranges

Affected versions

2.*
2.0.1

Database specific

cwes
[
    {
        "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"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "index.js",
            "sha256":  "0d4838d9e98f1870b3c44eadb1d0fd94e71526004752160f9db4c7d065e63874",
            "tlsh":  "5a21f1a125d6608f8938dad0f5306516acd7c677260752b2b9fc97ca27860080161fba"
        },
        {
            "path":  "package.json",
            "sha256":  "716acfe2d6434d3b90a6b096452f31585ff85bc6c94be2828ed608d026fbfa3e",
            "tlsh":  "5c019960ceb89e6300ed2542482a4a03b6a98c474628fc1933dba11c4fad0bb05ff21c"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "solidity-cat-2.0.1.tgz",
            "hashes":  {
                "sha1":  "02151eef55cf492fe74b332c2230c4643b8dd825",
                "sha512_sri":  "sha512-vOI4lvu+fmNceOPDOICGlkh4z7XMnllfCXbCu9dNmFmBM2AjFj6W+QPxIDsEogCaFXlXaTR8DCbFVt85NVUxOg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/solidity-cat/MAL-2026-18694.json"