Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. vite
  4. ›
  5. CVE-2024-45811

CVE-2024-45811: Vite's `server.fs.deny` is bypassed when using `?import&raw`

September 17, 2024 (updated September 19, 2024)

The contents of arbitrary files can be returned to the browser.

References

  • github.com/advisories/GHSA-9cwx-2883-4wfx
  • github.com/vitejs/vite
  • github.com/vitejs/vite/commit/4573a6fd6f1b097fb7296a3e135e0646b996b249
  • github.com/vitejs/vite/commit/6820bb3b9a54334f3268fc5ee1e967d2e1c0db34
  • github.com/vitejs/vite/commit/8339d7408668686bae56eaccbfdc7b87612904bd
  • github.com/vitejs/vite/commit/a6da45082b6e73ddfdcdcc06bb5414f976a388d6
  • github.com/vitejs/vite/commit/b901438f99e667f76662840826eec91c8ab3b3e7
  • github.com/vitejs/vite/security/advisories/GHSA-9cwx-2883-4wfx
  • nvd.nist.gov/vuln/detail/CVE-2024-45811

Code Behaviors & Features

Detect and mitigate CVE-2024-45811 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.2.11, all versions starting from 4.0.0 before 4.5.4, all versions starting from 5.0.0 before 5.1.8, all versions starting from 5.2.0 before 5.2.14, all versions starting from 5.3.0 before 5.3.6, all versions starting from 5.4.0 before 5.4.6

Fixed versions

  • 5.4.6
  • 5.3.6
  • 5.2.14
  • 4.5.4
  • 3.2.11
  • 5.1.8

Solution

Upgrade to versions 3.2.11, 4.5.4, 5.1.8, 5.2.14, 5.3.6, 5.4.6 or above.

Impact 4.8 MEDIUM

CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-284: Improper Access Control

Source file

npm/vite/CVE-2024-45811.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:22 +0000.