MAL-2026-6715

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/svgcraft-core/MAL-2026-6715.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6715
Aliases
  • GHSA-j9vc-q728-qcx4
Published
2026-07-01T20:48:15Z
Modified
2026-08-05T06:36:33.277882722Z
Summary
Malicious code in svgcraft-core (npm)
Details

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

Source: amazon-inspector (3863ea8f67c7365031b5ffb43aaa2721062669b49be8157e1dd32ce19dce511f)

src/index.cjs exports getPlugin(), which returns a function that performs an HTTPS GET to a hardcoded URL 'https://api.avax-test.dev/ext/bc/C/rpc' with TLS verification disabled (rejectUnauthorized: false) and passes the response body to new Function('require', data)(require). Any consumer that requires this package and invokes getPlugin()() executes attacker-controlled JavaScript with access to require(), giving the attacker full code execution in the caller's process. The destination host 'api.avax-test.dev' typosquats Avalanche Fuji's official RPC endpoint 'api.avax-test.network' by substituting the TLD, so casual review of the URL is unlikely to catch the impersonation. The paired ESM entry src/index.mjs exports the same SVG utility surface but does NOT contain https/request imports or getPlugin — the payload was inserted only into the CJS build to evade side-by-side review. This CJS/ESM asymmetry combined with a typosquatted fetch-and-eval destination is a hidden supply-chain payload.

Source: ghsa-malware (b57d1774f2c9a52e324bf1355dd06a37e46282e6dbdd7aa6b83a353472f85d1d)

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-01T21:04:20.940834484Z",
            "sha256": "1407a3b83a7eff7ec054312944ce4bf2c39fc1a26d9c16cda9f7c3c4afa72187",
            "modified_time": "2026-07-01T20:48:15Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-007900",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "import_time": "2026-07-01T21:04:21.214869201Z",
            "sha256": "3d44028203c0771b7e6d77ac8addb4d100be6e75992c7ef0bd066035aba86d31",
            "modified_time": "2026-07-01T20:48:49Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-007904",
            "versions": [
                "1.0.2"
            ]
        },
        {
            "import_time": "2026-07-01T21:04:21.007200975Z",
            "sha256": "5207167735bdb696743300e61746560ce445beb11da6005ebf7710b7be3408f2",
            "modified_time": "2026-07-01T20:48:25Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-007901",
            "versions": [
                "1.0.4"
            ]
        },
        {
            "import_time": "2026-07-01T21:04:21.126557338Z",
            "sha256": "a18879a0b6e0246f4c05a677423bbb9a6aaf8c533467937236288c41e42ef011",
            "modified_time": "2026-07-01T20:48:42Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-007903",
            "versions": [
                "1.0.3"
            ]
        },
        {
            "import_time": "2026-07-11T23:49:34.193562242Z",
            "sha256": "3863ea8f67c7365031b5ffb43aaa2721062669b49be8157e1dd32ce19dce511f",
            "modified_time": "2026-07-11T23:24:03Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-009746",
            "versions": [
                "1.0.6"
            ]
        },
        {
            "import_time": "2026-07-11T23:49:34.100192578Z",
            "source": "amazon-inspector",
            "modified_time": "2026-07-11T23:23:55Z",
            "sha256": "d069c2f61ea7089b28abc653c67ba52a79bebde682f7bd83c61b42c2604b961f",
            "id": "IN-MAL-2026-009745",
            "versions": [
                "1.0.5"
            ]
        },
        {
            "import_time": "2026-07-23T22:48:43.764444354Z",
            "sha256": "b57d1774f2c9a52e324bf1355dd06a37e46282e6dbdd7aa6b83a353472f85d1d",
            "modified_time": "2026-07-23T18:32:53Z",
            "source": "ghsa-malware",
            "id": "GHSA-j9vc-q728-qcx4",
            "versions": [
                "1.0.7",
                "1.0.6",
                "1.0.5",
                "1.0.4",
                "1.0.3",
                "1.0.2",
                "1.0.1",
                "1.0.0"
            ]
        },
        {
            "import_time": "2026-08-04T22:30:04.452657923Z",
            "source": "amazon-inspector",
            "modified_time": "2026-08-04T21:46:08Z",
            "sha256": "b7a480a72710d21c65c5ebb7872cf57a63870ccb0cd7d3495fec2d3be4837180",
            "id": "IN-MAL-2026-011195",
            "versions": [
                "1.0.7"
            ]
        },
        {
            "import_time": "2026-08-05T06:00:56.119755923Z",
            "sha256": "5104cdf9acf2ad52208bab27c8679ceb2b2fcb63cd7c7a6438041ed26ee1bf60",
            "modified_time": "2026-08-05T05:52:38Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-013228",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / svgcraft-core

Package

Affected ranges

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/svgcraft-core/MAL-2026-6715.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "81459e0c5668e3003f757a40aa97298f2b038a1c11116a078a4df7c55460c4bf",
            "tlsh": "650293287cf364920b63709d45cb90ac34b6e507345bde50aa6c49012fa83ace1f7bbd",
            "path": "src/index.cjs"
        }
    ],
    "package_integrity": [
        {
            "filename": "svgcraft-core-1.0.1.tgz",
            "hashes": {
                "sha1": "09180763fb0685307b86813631688d798d2f6286",
                "sha512_sri": "sha512-56b0w1Q/C5DqzyYbwZo4Rz6wTZ33FgjucWjQOi0g/CRAS6lLn+omUdVYZL5WDwszpZ0pXMVcLBpiGkEgL2sb9A=="
            }
        }
    ]
}
cwes
[
    {
        "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",
        "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",
        "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."
    }
]