MAL-2026-13465

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vite-vue-path-map/MAL-2026-13465.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13465
Published
2026-08-06T19:33:40Z
Modified
2026-08-06T23:50:26.669200123Z
Summary
Malicious code in vite-vue-path-map (npm)
Details

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

Source: amazon-inspector (a6841df6c82f556057129d7bf3f23a6cccff9da407678d980875c5529e40caa9)

The package is advertised as a Vite plugin that generates a local pathInfo.json map, but its generateBundle hook appends obfuscated JavaScript to the largest/entry JS chunk of the developer's build when a hidden MD5 license check (global['gva-project-name'] vs global['gva-secret']) fails. The appended code is stored as base64 constants (G, v, O) decoded via atob() at runtime. On every page load of the resulting production site it creates an invisible 0x0 off-screen <img> whose src decodes to https://plugin.gin-vue-admin.com/api/shopImage/view?name=logo.svg, sending a per-visitor beacon to an author-controlled domain. If that request fails or the server returns a non-image response, the onerror handler invokes document.open() and document.write() with a base64-decoded Chinese-language 'project unauthorized, contact WeChat shouzi_1994' HTML page, replacing the developer's application in every visitor's browser. The injection, beacon, and defacement behavior are not documented in the README and are activated at server-side discretion of the author's domain, giving whoever controls plugin.gin-vue-admin.com a remote switch to deface any site that shipped a build produced with this plugin.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "1.0.2"
            ],
            "import_time": "2026-08-06T23:25:08.458689632Z",
            "sha256": "33d9fb9d9144ca6d582b2cd92711169c1200b7dec8f5b63064d4f00cf0939ff6",
            "id": "IN-MAL-2026-016771",
            "modified_time": "2026-08-06T19:33:50Z",
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "import_time": "2026-08-06T23:25:08.494610836Z",
            "sha256": "40585ca03a579600693c4690e34a7cdee9e0d021d0699e96b91ad3162cf04e79",
            "id": "IN-MAL-2026-016772",
            "modified_time": "2026-08-06T19:34:09Z",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "versions": [
                "1.0.0"
            ],
            "sha256": "a6841df6c82f556057129d7bf3f23a6cccff9da407678d980875c5529e40caa9",
            "import_time": "2026-08-06T23:25:08.406529058Z",
            "id": "IN-MAL-2026-016770",
            "modified_time": "2026-08-06T19:33:40Z",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / vite-vue-path-map

Package

Affected ranges

Affected versions

1.*
1.0.0
1.0.1
1.0.2

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "vite-vue-path-map-1.0.2.tgz",
            "hashes": {
                "sha512_sri": "sha512-ymryTrYMnD+Dapzt6DcVR2tqB4CzKE3Ge8KdjZxxfIE8ALpUyL8OJgzHNaAGQKjYCaa9/jp8BWu7zktGLJq9bA==",
                "sha1": "f22cabb5a06d7e4a989635af9838c83750617477"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "d1f119f162c115b7d7946d82b47a4510f03db8a3380a94a0f6ad2f76bd36f1448b7eac",
            "sha256": "3432d66c8e228a302a335cc09869639f1eb6061daae1f1f1b3f624064a4f3d8a",
            "path": "index.min.js"
        }
    ]
}
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "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.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vite-vue-path-map/MAL-2026-13465.json"