Advisory

MAL-2026-11496

Also known as: GHSA-qhvp-2j38-vcxv

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in vite-config-svg (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (fee541a67169360e2d9ac3da7d19353031dd395c5e1bbe05bb4540ccc4837fa3)
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: ghsa-malware (f2d8df53cab9692399da989640712189aa027dd12b62e4fe0de37d76aa8c116d)
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.

Severity

Not rated by the source.

Dates

Published
2026-07-31 11:08 UTC
Modified
2026-08-04 23:05 UTC

Affected packages and fixes

vite-config-svg

npm · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences