{"id":"MAL-2026-10092","revision":"3a4d899050854d0a997ebb53e27e0b9c","records":[{"revision":"3a4d899050854d0a997ebb53e27e0b9c","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10092","aliases":[],"title":"Malicious code in vite-pwa-config (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bab1e251883a8eceecc27c935ed05352375d438c1efbbd8727f2b13a766409d0)\nPackage `vite-pwa-config` impersonates the popular `vite-plugin-pwa` (antfu) — the README instructs users to import `configJson` from `vite-plugin-pwa`, and package metadata reuses that project's funding link, badges, and banner. When the exported `configJson`/`configField` is invoked from a project's `vite.config`, `dist/index.cjs`/`index.mjs` spawns a detached `node` child (`stdio:\"ignore\"`, `child.unref()`) running the bundled `dist/client/dev/viteopt.js`. That helper fetches a JavaScript string from `https://www.jsonkeeper.com/b/FNOBS` via axios and passes it to `new Function('require', s)(require)`, giving the anonymous remote endpoint arbitrary code execution in the developer's build environment with full `require` access. The remote URL is disguised behind a local `process = { env: { DEV_API_URL:..., DEV_SECREDT:..., DEV_PREFIX:... } }` shadow object to make the fetch look like ordinary env-driven configuration. Detached/silenced child spawning plus the cover-story env shim are deliberate evasion of casual review, and jsonkeeper.com is a mutable, anonymous paste host — today's content can be swapped for any payload at any time. This is a typosquat lure carrying an unpinned remote-fetch-and-eval dropper.\n","state":0,"publishedAt":"2026-07-09T18:49:09+00:00","modifiedAt":"2026-07-09T21:16:56.9698851+00:00","affected":[{"ecosystem":"npm","name":"vite-pwa-config","ranges":[],"versions":["1.1.1","1.1.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/vite-pwa-config/v/1.1.1","https://www.npmjs.com/package/vite-pwa-config/v/1.1.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10092","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10092","identifiers":["MAL-2026-10092"]},"retained":false,"historicalAffected":[]}],"coverage":[]}