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
Aliases
  • GHSA-q5wh-5wp7-j3cx
Published
2026-08-06T19:33:40Z
Modified
2026-11-16T20:30:07Z
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 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.

Source: ghsa-malware (cbc02740b4c38f27ff8b5378f486f452154a286518ab1f46641c6eaff3644915)

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-016771",
            "import_time":  "2026-08-06T23:25:08.458689632Z",
            "modified_time":  "2026-08-06T19:33:50Z",
            "sha256":  "33d9fb9d9144ca6d582b2cd92711169c1200b7dec8f5b63064d4f00cf0939ff6",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.2"
            ]
        },
        {
            "id":  "IN-MAL-2026-016772",
            "import_time":  "2026-08-06T23:25:08.494610836Z",
            "modified_time":  "2026-08-06T19:34:09Z",
            "sha256":  "40585ca03a579600693c4690e34a7cdee9e0d021d0699e96b91ad3162cf04e79",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.1"
            ]
        },
        {
            "id":  "IN-MAL-2026-016770",
            "import_time":  "2026-08-06T23:25:08.406529058Z",
            "modified_time":  "2026-08-06T19:33:40Z",
            "sha256":  "a6841df6c82f556057129d7bf3f23a6cccff9da407678d980875c5529e40caa9",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        },
        {
            "id":  "GHSA-q5wh-5wp7-j3cx",
            "import_time":  "2026-11-16T20:17:32.329302734Z",
            "modified_time":  "2026-11-16T20:15:09Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "cbc02740b4c38f27ff8b5378f486f452154a286518ab1f46641c6eaff3644915",
            "source":  "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / vite-vue-path-map

Package

Name
vite-vue-path-map
View open source insights on deps.dev
Purl
pkg:npm/vite-vue-path-map

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

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"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "index.min.js",
            "sha256":  "3432d66c8e228a302a335cc09869639f1eb6061daae1f1f1b3f624064a4f3d8a",
            "tlsh":  "d1f119f162c115b7d7946d82b47a4510f03db8a3380a94a0f6ad2f76bd36f1448b7eac"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "vite-vue-path-map-1.0.2.tgz",
            "hashes":  {
                "sha1":  "f22cabb5a06d7e4a989635af9838c83750617477",
                "sha512_sri":  "sha512-ymryTrYMnD+Dapzt6DcVR2tqB4CzKE3Ge8KdjZxxfIE8ALpUyL8OJgzHNaAGQKjYCaa9/jp8BWu7zktGLJq9bA=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vite-vue-path-map/MAL-2026-13465.json"