MAL-2026-6707

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/svgson-lite/MAL-2026-6707.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6707
Aliases
  • GHSA-g7rx-jhhj-8whr
Published
2026-07-01T18:35:11Z
Modified
2026-08-05T06:36:33Z
Summary
Malicious code in svgson-lite (npm)
Details

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

Source: amazon-inspector (ceb1026a96918a3f4ed4c7c4f0aa75411c3869f1ad14405174e396b4e67907d2)

index.js exports an undocumented getPlugin() function which, when invoked, performs an HTTP GET to https://shorturl.at/147uq, JSON-parses the response body, and passes the response's model field directly to eval(). The URL is a mutable shortener redirect controlled by the package author and can be repointed to any JavaScript payload at any time, giving the author arbitrary code execution in the process of any consumer that calls getPlugin()(). The package's stated purpose is an SVG helper: package.json describes it as 'Tiny zero-dependency SVG helper for Node.js' and declares no dependencies, yet index.js requires the 'request' library and implements the fetch+eval path. The network+eval behavior is unrelated to SVG processing and is not mentioned in the README, keywords, or exports documentation. The mismatch between advertised purpose and shipped behavior, combined with the shortener-cloaked destination, is deliberate concealment of a backdoor surface.

Source: ghsa-malware (56ef1984d5bf59b2119e6803a5c5121c4de02bc2f1ec852aaccaaadb0914b5ae)

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": [
        {
            "id": "IN-MAL-2026-007851",
            "import_time": "2026-07-01T19:11:23.809057427Z",
            "modified_time": "2026-07-01T18:35:47Z",
            "sha256": "083b9db212b14d87917991f5faa63212319efaec6c2b573fa8d0efb1da747572",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "id": "IN-MAL-2026-007852",
            "import_time": "2026-07-01T19:11:23.920731572Z",
            "modified_time": "2026-07-01T18:35:55Z",
            "sha256": "74d7365a440703b3b3a7dd0486437fedd80cfb6fd4c0d5e636f32385621cb5df",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-007853",
            "import_time": "2026-07-01T19:11:24.0866588Z",
            "modified_time": "2026-07-01T18:36:05Z",
            "sha256": "b54d78c3ce0a5c30a8060cc6086a5a5d410fc4ab24442aa93f16475a218e32f4",
            "source": "amazon-inspector",
            "versions": [
                "1.0.5"
            ]
        },
        {
            "id": "IN-MAL-2026-007848",
            "import_time": "2026-07-01T19:11:23.503149023Z",
            "modified_time": "2026-07-01T18:35:21Z",
            "sha256": "ceb1026a96918a3f4ed4c7c4f0aa75411c3869f1ad14405174e396b4e67907d2",
            "source": "amazon-inspector",
            "versions": [
                "1.0.6"
            ]
        },
        {
            "id": "IN-MAL-2026-007849",
            "import_time": "2026-07-01T19:11:23.596474468Z",
            "modified_time": "2026-07-01T18:35:28Z",
            "sha256": "3af541a1fe8000c1b4aa51ea183d7e780163090d6ca8a2a52dfcd0ebf7f388be",
            "source": "amazon-inspector",
            "versions": [
                "1.0.7"
            ]
        },
        {
            "id": "IN-MAL-2026-007850",
            "import_time": "2026-07-01T19:11:23.700829044Z",
            "modified_time": "2026-07-01T18:35:36Z",
            "sha256": "6fb634869b533b95806d632f845ae1a10e6d23e3114f16f0626810367e54817f",
            "source": "amazon-inspector",
            "versions": [
                "1.0.2"
            ]
        },
        {
            "id": "IN-MAL-2026-007847",
            "import_time": "2026-07-01T19:11:23.387408601Z",
            "modified_time": "2026-07-01T18:35:11Z",
            "sha256": "745e263630d68551c3f2002b051c37aee9a891e7edec1e2ed2725d27ff66bb65",
            "source": "amazon-inspector",
            "versions": [
                "1.0.4"
            ]
        },
        {
            "id": "IN-MAL-2026-010317",
            "import_time": "2026-07-13T21:25:58.739210501Z",
            "modified_time": "2026-07-13T21:03:35Z",
            "sha256": "e45e6c5ca94b2d2df4b8e67e4c44ed0114445d5fcf645f7d8dffaeedbc16bb91",
            "source": "amazon-inspector",
            "versions": [
                "1.0.8"
            ]
        },
        {
            "id": "GHSA-g7rx-jhhj-8whr",
            "import_time": "2026-07-20T00:57:10.764319114Z",
            "modified_time": "2026-07-20T00:14:35Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "56ef1984d5bf59b2119e6803a5c5121c4de02bc2f1ec852aaccaaadb0914b5ae",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-012916",
            "import_time": "2026-08-05T06:00:19.474257334Z",
            "modified_time": "2026-08-05T05:07:29Z",
            "sha256": "ba0c2250bf503538c7f9e3861adb7467705cdcc42e75814ec464640f71eff0aa",
            "source": "amazon-inspector",
            "versions": [
                "1.0.3"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / svgson-lite

Package

Affected ranges

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

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
1.0.8

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"
    },
    {
        "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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "index.js",
            "sha256": "1e9093e063cbdb4bc79725ebcde0535ef0d4af6fc9b351a0850d930ddd98a044",
            "tlsh": "b14101697dfb65654363b0b82487c0153572e027a66e4ed0abce0d642f9c1fc0df6ae4"
        }
    ],
    "package_integrity": [
        {
            "filename": "svgson-lite-1.0.1.tgz",
            "hashes": {
                "sha1": "a16b7e44a00aa54ea5aa732a582a81550904c1b6",
                "sha512_sri": "sha512-a7c36n5RYybxaZfOdwVyNPbdf/o5I6FfvS/Bt1LjJhyeF9Q8WXol+sQi5j4flbG4Its3+1VzL0cnB8RKoX+9Ww=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/svgson-lite/MAL-2026-6707.json"