{"id":"MAL-2026-17222","revision":null,"records":[{"revision":"2f14fbb92d12475cbee545204c3fd250","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-17222","aliases":["GHSA-mh9w-qr45-6wrq"],"title":"Malicious code in vite-plugin-crypto (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (54ee82c069dcdf259199f5844c6ff46be3020d79609ff7b7b8ebc82017c59b2c)\nvite-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`.\n\n## Source: ghsa-malware (fdaf333e613f70df12ceaf378093d996a4bc1dd4df1a6350c4848a5de0fb83e7)\nAny 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.\n","state":0,"publishedAt":"2026-09-28T16:03:22+00:00","modifiedAt":"2026-09-30T01:00:06.4772029+00:00","affected":[{"ecosystem":"npm","name":"vite-plugin-crypto","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["1.0.2","1.0.6","1.0.5","1.0.1","1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/advisories/GHSA-mh9w-qr45-6wrq","https://www.npmjs.com/package/vite-plugin-crypto/v/1.0.2","https://www.npmjs.com/package/vite-plugin-crypto/v/1.0.6","https://www.npmjs.com/package/vite-plugin-crypto/v/1.0.5","https://www.npmjs.com/package/vite-plugin-crypto/v/1.0.1","https://www.npmjs.com/package/vite-plugin-crypto/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-17222","license":"OSV · upstream source license applies","key":"osv:MAL-2026-17222","identifiers":["MAL-2026-17222","GHSA-mh9w-qr45-6wrq"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-12T05:58:40.9203184+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-12T05:58:40.9203184+00:00","lastSuccessAt":"2026-11-12T05:58:41.095627+00:00","error":null,"lastVerifiedAt":"2026-11-12T05:58:41.0956282+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-64752486c567b55b31fb0d7225f5222bcd0019564ac0ac5f0649e242c7b19299-88a69dfec4d1b83d929ca06b957aa3a4484cd80632df1e27cf4c312635b2bedd","complete":true,"records":424594,"lastAttemptAt":"2026-11-12T05:56:53.4810169+00:00","lastSuccessAt":"2026-11-12T05:56:53.4611758+00:00","error":null,"lastVerifiedAt":"2026-11-12T05:56:53.4810169+00:00","snapshotPublishedAt":"2026-11-12T05:28:30+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-dfa2c4aaec6f4aecad791663dd265c1b","complete":true,"records":13760,"lastAttemptAt":"2026-11-12T06:00:32.7256045+00:00","lastSuccessAt":"2026-11-12T06:00:32.721+00:00","error":null,"lastVerifiedAt":"2026-11-12T06:00:32.721+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13813,"expectedIdentifiers":13813,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-12T05:58:40.9203184+00:00","complete":true,"records":1097,"lastAttemptAt":"2026-11-12T05:58:40.9203184+00:00","lastSuccessAt":"2026-11-12T05:58:41.0963887+00:00","error":null,"lastVerifiedAt":"2026-11-12T05:58:41.0963888+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-6b3a361b3e0f452d8ff70bd272635b35","complete":true,"records":13760,"lastAttemptAt":"2026-11-12T05:59:00.2510884+00:00","lastSuccessAt":"2026-11-12T05:59:00.248+00:00","error":null,"lastVerifiedAt":"2026-11-12T05:59:00.248+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13813,"expectedIdentifiers":13813,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-3562b6c78fd1bd0f0b55daf66a0926ae24f65e462df7f6d928caad458fc696bf","complete":true,"records":9947,"lastAttemptAt":"2026-11-12T05:58:40.8633143+00:00","lastSuccessAt":"2026-11-11T04:27:43.6877707+00:00","error":null,"lastVerifiedAt":"2026-11-12T05:58:40.8633143+00:00","snapshotPublishedAt":"2026-11-11T03:32:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-456002455e0ab94bb92c95476d4e6d175c104cd594749982afd96c893728ecbc","complete":true,"records":2010,"lastAttemptAt":"2026-11-12T05:56:53.625749+00:00","lastSuccessAt":"2026-11-11T02:36:58.1276999+00:00","error":null,"lastVerifiedAt":"2026-11-12T05:56:53.625749+00:00","snapshotPublishedAt":"2026-11-11T01:17:51+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-baa8362b4daf9e5f39d5563775a55935e7b442c0735d33274a921579ce4a0d66","complete":true,"records":3093,"lastAttemptAt":"2026-11-12T05:58:40.8782632+00:00","lastSuccessAt":"2026-11-11T13:00:02.5446881+00:00","error":null,"lastVerifiedAt":"2026-11-12T05:58:40.8782632+00:00","snapshotPublishedAt":"2026-11-11T12:47:47+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-eb5176d73e87a862c4cae7484f3fd31f7d170139114b3e99e25926d661f6435b","complete":true,"records":231700,"lastAttemptAt":"2026-11-12T05:58:40.7363027+00:00","lastSuccessAt":"2026-11-12T05:58:39.2691741+00:00","error":null,"lastVerifiedAt":"2026-11-12T05:58:40.7363027+00:00","snapshotPublishedAt":"2026-11-12T05:48:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}