MAL-2026-13464

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vite-svg-parse/MAL-2026-13464.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13464
Published
2026-08-06T19:34:20Z
Modified
2026-08-06T23:50:25.914168965Z
Summary
Malicious code in vite-svg-parse (npm)
Details

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

Source: amazon-inspector (5f6b581f4ab8d027c727649fae10749a9ac9a59af4619f5576362ab9243cb6c6)

The package's exported API (getPlugin/setPlugin) decodes two base64 string literals at runtime: the first decodes to npm install node-internal-svg-loader --no-save --silent --no-audit --no-fund, which is passed to child_process.spawn; the second decodes to the module name node-internal-svg-loader, which is then require()'d and whose getPlugin()/setPlugin() are invoked. The fetched package is not declared in package.json dependencies, and both the shell command and the require target are concealed in base64 to evade static inspection. Any consumer that imports this library and calls its documented API causes an undeclared, hidden third-party npm package to be installed and its code executed in the installer's Node.js process.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "1.1.3"
            ],
            "import_time": "2026-08-06T23:25:08.558554828Z",
            "sha256": "5f6b581f4ab8d027c727649fae10749a9ac9a59af4619f5576362ab9243cb6c6",
            "modified_time": "2026-08-06T19:34:20Z",
            "id": "IN-MAL-2026-016773",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / vite-svg-parse

Package

Affected ranges

Affected versions

1.*
1.1.3

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-SC/can+JEJ1fZa5nnnwaL7bFNWSzbnjc0uAcS8+mc8B0dFytnXR182Ai0lA/x0GdkKITn3vrq2XwGeidbRXFVQ==",
                "sha1": "1ac5435c045ed1509e0bfb06fee8cd1d38adb99f"
            },
            "filename": "vite-svg-parse-1.1.3.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "index.js",
            "sha256": "a8bef3841995b1144cc308dee9e7a2dc854ebb2872f6f30b80ec00d5b66e9e84",
            "tlsh": "592235911c9731228d72c7fe5d01841eeb8ed3273215619e7dbd52501f7a7a042aeeec"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vite-svg-parse/MAL-2026-13464.json"