MAL-2026-20289

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vite-plugin-bar-plus/MAL-2026-20289.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20289
Published
2026-11-20T03:47:27Z
Modified
2026-11-20T04:30:25Z
Summary
Malicious code in vite-plugin-bar-plus (npm)
Details

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

Source: amazon-inspector (8abd82f55f5166e298a26544d211054accd35ea8f16b6f1e0aeb84e32b0542d2)

The package is advertised as a Vite progress-bar plugin but, during a consumer's Vite build, POSTs the machine hardware UUID (read via systeminformation.system()), the USERNAME and USERDOMAIN environment values, INIT_CWD, the npm package name/version, and the value of the VITE_APP_EMAIL_USER_NAME environment variable to http://api.wit-ui.com/check.php over plaintext HTTP. Both the destination URL and the env-var name are assembled at runtime from 2-3 character string fragments ('ht'+'tp'+':'+'//'+'api'+'.'+'wi'+'t'+'-u'+'i.'+'c'+'o'+'m'+'/'+'che'+'ck'+'.'+'p'+'hp' and 'VI'+'TE_A'+'PP_EM'+'AIL'+'_US'+'ER'+'_NA'+'ME'), a deliberate anti-detection pattern rather than minifier output. The response handler branches on data.ret == 0 and, when set, writes the server-supplied data.msg to the build output in red and calls process.exit(), giving the author a remote kill switch that aborts any consumer's Vite build with attacker-chosen text. None of this behavior is disclosed in the README, which contains only an install line.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-022939",
            "import_time": "2026-11-20T04:13:20.029720945Z",
            "modified_time": "2026-11-20T03:47:27Z",
            "sha256": "8abd82f55f5166e298a26544d211054accd35ea8f16b6f1e0aeb84e32b0542d2",
            "source": "amazon-inspector",
            "versions": [
                "1.0.47"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / vite-plugin-bar-plus

Package

Name
vite-plugin-bar-plus
View open source insights on deps.dev
Purl
pkg:npm/vite-plugin-bar-plus

Affected ranges

Affected versions

1.*
1.0.47

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "dist/index.js",
            "sha256": "a8ca60aee98dab043abb5d71121b14cfe1a7b211adc16e60d5795fcb164dc45a",
            "tlsh": "2b43511898f125565303b1b9888b9405b77de1037818adacbe5de7606f8903dcbf6bdc"
        }
    ],
    "package_integrity": [
        {
            "filename": "vite-plugin-bar-plus-1.0.47.tgz",
            "hashes": {
                "sha1": "8612c8b8918bb2d504787fe1b97cc9f17551da6b",
                "sha512_sri": "sha512-EOcjxpqAC7KIqWfWKumyG9N3kOqLE5ZUi8zyfSZuPDWyFicAMDiB2Ryli2j4LWggE3WBmRtLKhbp7DONHjiFmw=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vite-plugin-bar-plus/MAL-2026-20289.json"