MAL-2026-10482

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/react-icons-svgo/MAL-2026-10482.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10482
Aliases
  • GHSA-m78v-9w6f-xwf2
Published
2026-07-13T19:53:21Z
Modified
2026-07-20T01:04:39.936276308Z
Summary
Malicious code in react-icons-svgo (npm)
Details

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

Source: amazon-inspector (d0ccdc7a601182ae60a4f75d72cb54aef12fbe94cb209625f6f1c9be47b12096)

index.js stores base64-encoded literals (svgValidateKey, svgValidatePattern) that decode to the shell command npm install rollup-plugin-polyfill-handler --no-save --silent --no-audit --no-fund and to the module name rollup-plugin-polyfill-handler. When the package's advertised API (getPlugin/setPlugin, or any SVG validation path via ValidateSvgModule/ValidateSvgModuleB) is invoked, the code atob-decodes those literals, spawns the install command (suppressing output via --silent --no-audit --no-fund and skipping persistence via --no-save), then require()s the decoded module name and immediately invokes its exported getPlugin(). The fetched package is undeclared in dependencies, its name is hidden behind base64, and its contents are fully controlled by a third-party publisher who can change them at any time — yielding arbitrary remote code execution in the installer's Node process on first use of the advertised SVG utilities. The package name react-icons-svgo further impersonates the popular react-icons and svgo ecosystems while shipping no real functionality beyond a thin CDN helper plus this covert install/require channel.

Source: ghsa-malware (0b3d992536d0609b8a2b38d003708c848c24708be388fbda15cd4091f62135da)

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-07-13T20:29:54.241385357Z",
            "id": "IN-MAL-2026-010304",
            "sha256": "40365f843366f9cd2c80f313e99cc021df31c8f80c9813012277617e3fe4c230",
            "modified_time": "2026-07-13T19:53:21Z",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-010306",
            "import_time": "2026-07-13T20:29:54.372122014Z",
            "sha256": "5625dd5cae598aa066b4b6f1b5708134da0b3f0907805c0cb3f6dfefefb32430",
            "modified_time": "2026-07-13T19:53:41Z",
            "source": "amazon-inspector",
            "versions": [
                "1.5.4"
            ]
        },
        {
            "import_time": "2026-07-13T20:29:54.310075986Z",
            "id": "IN-MAL-2026-010305",
            "sha256": "d0ccdc7a601182ae60a4f75d72cb54aef12fbe94cb209625f6f1c9be47b12096",
            "modified_time": "2026-07-13T19:53:30Z",
            "source": "amazon-inspector",
            "versions": [
                "1.5.3"
            ]
        },
        {
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "import_time": "2026-07-20T00:57:10.767377357Z",
            "id": "GHSA-m78v-9w6f-xwf2",
            "sha256": "0b3d992536d0609b8a2b38d003708c848c24708be388fbda15cd4091f62135da",
            "modified_time": "2026-07-19T23:54:48Z",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / react-icons-svgo

Package

Affected ranges

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

Affected versions

1.*
1.0.0
1.5.3
1.5.4

Database specific

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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "index.js",
            "tlsh": "e52245911c9731228d72c7fe5d02841eeb8ed3273215619e7dbd52501f7a7a042aeeec",
            "sha256": "24782fc848dd658f4675b5febd16712c122a079f200cd71f9ef3e35ffd9d6087"
        },
        {
            "path": "package.json",
            "tlsh": "96f07824da205d630eea52d36c8515175052da1b4d08bc0c73ab886c2ffe7af14fd6bd",
            "sha256": "a8390c06e51f523c7bbc43a3ba9458cdef5f744534ab96c710b61b2df2095b4f"
        }
    ],
    "package_integrity": [
        {
            "filename": "react-icons-svgo-1.0.0.tgz",
            "hashes": {
                "sha1": "f226afad3f5f1d6e71c185e9b00e974f8875a351",
                "sha512_sri": "sha512-ibq57gLlEzz7LAtc8zd2+K5oLHJ3FB0kw6BC7fhbc1/Mfy0BHc+Oa8P7H971kGAQDN9QM3GturRZ7kgrf0JhGw=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/react-icons-svgo/MAL-2026-10482.json"