npm

The vite-auto-import-svg npm Malware Advisory

Updated 20 Nov 2026 · Incident date 2 Jun 2024

GitHub and OpenSSF mark all versions of vite-auto-import-svg as malware, and npm removed them on 16 November 2026.

GitHub advisory GHSA-rrwf-2g66-3mp2 marks every version of the npm package vite-auto-import-svg as malware. npm replaced the package with a security holding package on 16 November 2026.

What happened

GitHub published GHSA-rrwf-2g66-3mp2 on 16 November 2026. OpenSSF copied it as MAL-2026-20013.

  • The advisory affects every version, with no patched version.
  • The advisory gives no payload, file, domain or hash.
  • npm published the security holding version 0.0.1-security at 20:15:40 UTC on 16 November 2026.
  • The registry no longer serves versions 1.0.0 (2 June 2024) through 2.9.8 (5 August 2026).

The code was unavailable for inspection. No fetched source names the first malicious release.

Affected versions

  • GitHub and OpenSSF: all versions (introduced 0, no fix).
  • Registry history: 1.0.0 through 2.9.8, now removed.

How to check

List the installed version in each Node.js project.

npm ls vite-auto-import-svg

Search package-lock.json files in past builds for the package name. Those builds can show when an install pulled a removed version.

What to do now

  1. Run npm uninstall vite-auto-import-svg in every project.
  2. The advisory says to treat a computer with the package installed as fully compromised.
  3. From a different computer, rotate the secrets and keys on it.

What Vigilance would show

These examples show an install hold and the corresponding owner report.

Example install message

Vigilance blocked `vite-auto-import-svg` 2.9.8. This version is too new or changed in a way Vigilance must check first.

Example owner report

Bad update

vite-auto-import-svg 2.9.8

A package that auto-imports SVG icons was removed by npm after a malware advisory marked all its versions.

See what to do now.

No security team? See who reads the alert.

Sources

  1. github.com/advisories/GHSA-rrwf-2g66-3mp2
  2. osv.dev/vulnerability/MAL-2026-20013
  3. registry.npmjs.org/vite-auto-import-svg

Send this page to the person who looks after AI at your company.

Email it

More supply chain attacks

All 172 attacks in the library · npm supply chain attacks · How to prevent supply chain attacks

Check the next update before you install it

Vigilance compares the version you trust with the new one. It names the one file that gained a power the old version did not have.

Start the free 14-day trialBrowse the attack library