# MAL-2026-11496: Malicious code in vite-config-svg (npm)


- **Type:** Malicious package
- **Package:** `vite-config-svg` (npm)
- **Published:** 31 Jul 2026
- **Also known as:** GHSA-qhvp-2j38-vcxv

## What is MAL-2026-11496?

MAL-2026-11496 is a malicious package in vite-config-svg, published on 31 Jul 2026. 

### Official description

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.

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.

## What should I do about MAL-2026-11496?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-11496 is a malicious package: vite-config-svg (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-11496/ (Markdown: https://insights.sbomify.com/MAL-2026-11496/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-11496

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-11496/
Summaries are generated and may contain mistakes; the official description above is the record.
