VDB
GCVE-110-OSM-2026-12689
GCVE-110-OSM-2026-12689
Advisory PublishedCVSS 8.8/10
vite-plugin-crypto@1.0.2 exposes a Vite plugin factory whose body concatenates three option fields — secret, salt, and iv — into a single string and passes it to System.import(...) from the systemjs runtime module loader, discarding the returned promise with .then(() => {}). Only secret is used by the advertised AES-GCM encrypt() path; salt and iv are declared on the options type but are absent from the documented options table and are unused by the real crypto code (which generates its own random salt/IV per call). The concatenated string is treated as a module specifier by SystemJS, which resolves URLs and executes fetched JavaScript, so whoever controls these option values obtains arbitrary JavaScript execution on the Vite build/dev host each time the config is loaded. Pulling in a browser-oriented dynamic module loader as the package's only runtime dependency, naming the concatenated input derivedSecret, and swallowing the promise frame the remote-loader call as a benign key-derivation step. Base64 decoding in dist/index.cjs and dist/index.js is used within the AES-GCM helper. The trigger fires at plugin construction during vite build / vite dev.
ADDITIONAL FINDINGS
- Brand New Package
- Very New NPM Publisher Account
Weaknesses (CWE)
CWE-506Embedded Malicious Code
Risk Scores
CVSS 3.1
8.8/10
High · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected Products
| Vendor | Product | Versions | Platforms |
|---|---|---|---|
| unknown | vite-plugin-crypto | all (affected) | — |
Aliases
Browse GCVE Records
3,105 records in the GCVE database · Updated October 4, 2026
No matching records found.
Explore Further
Investigate this vulnerability in the interactive console or download the raw GCVE record.