Information Exposure Affecting vite package, versions <5.4.6-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-VITE-8055977
  • published19 Sept 2024
  • disclosed17 Sept 2024

Introduced: 17 Sep 2024

CVE-2024-45811  (opens in a new tab)
CWE-200  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade Chainguard vite to version 5.4.6-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream vite package and not the vite package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

Vite a frontend build tooling framework for javascript. In affected versions the contents of arbitrary files can be returned to the browser. @fs denies access to files outside of Vite serving allow list. Adding ?import&amp;raw to the URL bypasses this limitation and returns the file content if it exists. This issue has been patched in versions 5.4.6, 5.3.6, 5.2.14, 4.5.5, and 3.2.11. Users are advised to upgrade. There are no known workarounds for this vulnerability.