vite-tsconfig-svg
This report shows the evidence for vite-tsconfig-svg@1.1.4, the only known version.
OpenSSF/OSV Malicious Advisory
imported 3mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-11497 confirms this npm version as malicious.
Advisory
MAL-2026-11497
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in vite-tsconfig-svg (npm)
Details
index.js contains two base64 constants that decode to the shell command `npm install rollup-plugin-polyfill-helper --no-save --silent --no-audit --no-fund` and the package name `rollup-plugin-polyfill-helper`. When a consumer calls the exported `getPlugin`/`setPlugin` (reachable indirectly through `validateSvgContent`), the module spawns the decoded install command via `child_process` with `stdio:'ignore'` and `windowsHide:true`, then `require()`s the decoded package name and invokes its `getPlugin()`/`setPlugin()` methods. The fetched package is undeclared in `dependencies`, unpinned, and pulled from the mutable npm registry, so arbitrary attacker-controlled code from `rollup-plugin-polyfill-helper` executes in the consumer's Node process. The package name and description advertise a vite/tsconfig SVG utility, but no vite/tsconfig code is shipped — the module only scans a caller-supplied directory for `.svg` files as a cover for the install-and-execute path.
## Source: ghsa-malware (47ed169858113da45745f7c69d04ad81103987d8b1213b2c98024d878bbea0c3) Any 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.
References
Source & flagged code
0 flagged · loading sourceNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory
Affected versions and remediation
This report applies to vite-tsconfig-svg@1.1.4.
The versions list below shows the verdict for each recorded version.
- Avoid installing vite-tsconfig-svg@1.1.4. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
This report uses published external intelligence. The advisory does not provide a separate source-code analysis for each listed version.
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.