vite-config-svg @1.1.7
Vulnerability report · Last retrieved from osv.dev August 5, 2026 at 1:58 AM UTC
OSV ID
MAL-2026-11496
Ecosystem
npm
Summary
The package's exported getPlugin/setPlugin functions, when invoked by a consumer, decode base64-obfuscated string constants (svgValidateKey, svgValidatePattern) at runtime to reconstruct the command npm install rollup-plugin-polyfill-helper --no-save --silent --no-audit --no-fund and the module name rollup-plugin-polyfill-helper . The command is spawned silently (flags suppress install output, audit, and fund messages) to install a package that is not declared in package.json dependencies, then require()s the freshly installed module and executes its getPlugin() export. Both the shell command and the required module identifier are stored only as base64 literals and reconstructed via atob, hiding them from static inspection of package.json and casual review. Whoever controls the rollup-plugin-polyfill-helper name on the npm registry can ship arbitrary code that will run on any machine that imports vite-config-svg and calls its advertised SVG-config API. The package's stated purpose is an SVG configuration helper; covertly installing and running a hidden, externally-controlled npm package is unrelated to that purpose and constitutes a dropper.
Source: amazon-inspector (fee541a67169360e2d9ac3da7d19353031dd395c5e1bbe05bb4540ccc4837fa3)
Protect your entire dependency tree
Scan your lock files automatically on every PR. Block malicious packages before they reach production.