Skip to content
supplychainattack.orgSupply chain attack incident catalog
activecritical

Malware in vite-config-optimizer

Malware discovered in the npm package vite-config-optimizer. The package grants full system compromise to attackers, requiring immediate removal and credential rotation from a clean system.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any system with the package installed or running
Ecosystems
Attack vectors
Affected entities
  • vite-config-optimizer

The npm package vite-config-optimizer has been identified as containing malware. According to the GitHub Advisory (GHSA-5rwj-cgwr-q954), any computer with this package installed or running should be considered fully compromised.\n\nThe advisory recommends that all secrets and keys stored on affected computers be rotated immediately from a different, uncompromised system. While the package should be removed, the advisory notes that full control of the computer may have been given to an outside entity, meaning removal of the package alone may not eliminate all malicious software that resulted from installation.\n\nThis represents a critical supply chain attack through a compromised npm package with potential for complete system takeover.

Indicators of compromise

Packages
  • vite-config-optimizer

Remediation

  • Remove the vite-config-optimizer package immediately
  • Rotate all secrets, API keys, and credentials from a clean, uncompromised computer
  • Perform a full security audit and malware scan of affected systems
  • Review system logs for unauthorized access or activity
  • Consider the affected system fully compromised and plan for complete rebuild if critical systems are involved
  • Check for lateral movement to other systems on the network

Sources

  1. GitHub Advisory GHSA-5rwj-cgwr-q954 · GitHub Advisory Database

Cite this entry

"Malware in vite-config-optimizer." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed July 15, 2026; last updated July 15, 2026. https://supplychainattack.org/incident/malware-in-vite-config-optimizer-icsfr3

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. activecritical

    Malware in ssweb-wp

    Malware discovered in the npm package ssweb-wp. Systems with this package installed are considered fully compromised and require immediate remediation.

    npmCompromised package
  2. activecritical

    Malware in webpack-session-cache

    Malware was discovered in the npm package webpack-session-cache. Systems with this package installed are considered fully compromised and require immediate remediation.

    npmCompromised package
  3. containedcritical

    Malware in ldpbootstrap-jquery

    Malware was discovered in the npm package ldpbootstrap-jquery. Systems with this package installed or running should be considered fully compromised, with all secrets and keys requiring immediate rotation from a different computer.

    npmCompromised package
  4. containedcritical

    Malware in @sauruslord/eslint-config

    Malware was discovered in the npm package @sauruslord/eslint-config. Systems with this package installed are considered fully compromised and require immediate remediation.

    npmCompromised package