p PatchFirst

CVE-2024-45811

CVE-2024-45811 · server.fs.deny bypassed when using ?import&raw in vite

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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&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.

CVSS 4.8 · Medium · EPSS 1.1% · Fix available

Published
Updated

Stack: node

Affected products and versions

  • vite

    Versions
    • >= 5.4.0, < 5.4.6: Affected
    • >= 5.3.0, < 5.3.6: Affected
    • >= 5.0.0, < 5.2.14: Affected
    • >= 4.0.0, < 4.5.5: Affected
    • < 3.2.11: Affected

    No fix published

  • vite npm

    Affected ranges
    • SEMVER: ≥ 5.4.0, < 5.4.6

    Update to 5.4.6

  • vite npm

    Affected ranges
    • SEMVER: ≥ 5.3.0, < 5.3.6

    Update to 5.3.6

  • vite npm

    Affected ranges
    • SEMVER: ≥ 5.2.0, < 5.2.14

    Update to 5.2.14

  • vite npm

    Affected ranges
    • SEMVER: ≥ 4.0.0, < 4.5.4

    Update to 4.5.4

  • vite npm

    Affected ranges
    • SEMVER: < 3.2.11

    Update to 3.2.11

  • vite npm

    Affected ranges
    • SEMVER: ≥ 5.0.0, < 5.1.8

    Update to 5.1.8

Original sources

Check your server →