CVEMETERBack to radar
OFFICIAL RECORD · JavaScript packages

CVE-2025-46565

PUBLISHEDOfficial status check: verifiedCVSS 4.0: 6 · medium

Vite's server.fs.deny bypassed with /. for files under project root

Vite is a frontend tooling framework for javascript. Prior to versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, and 4.5.14, the contents of files in the project root that are denied by a file matching pattern can be returned to the browser. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. Only files that are under project root and are denied by a file matching pattern can be bypassed. `server.fs.deny` can contain patterns matching against files (by default it includes .env, .env.*, *.{crt,pem} as such patterns). These patterns were able to bypass for files under `root` by using a combination of slash and dot (/.). This issue has been patched in versions 6.3.4, 6.2.7, 6.1.6, 5.4.19, and 4.5.14.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 1.243% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:28:52.703Z. Public exploit availability is not used to set this status.

CVSS 4.0 · 6 · published by GitHub_M
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T12:57:34.181Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:28:52.703ZCISA KEV
cvssverified2026-11-19T12:57:34.181ZCVE Program
epssverified2026-11-19T16:04:40.990ZFIRST EPSS
patchesverified2026-11-19T12:51:58.234ZOSV
affectedverified2026-11-19T12:57:34.181ZCVE Program
lifecycleverified2026-11-19T12:57:34.181ZCVE Program

Affected versions and configuration

vitejs vite; default status: unknown: >= 6.3.0, < 6.3.4 [affected; scheme: unspecified]; >= 6.2.0, < 6.2.7 [affected; scheme: unspecified]; >= 6.0.0, < 6.1.6 [affected; scheme: unspecified]; >= 5.0.0, < 5.4.19 [affected; scheme: unspecified]; < 4.5.14 [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "vitejs",
      "product": "vite",
      "versions": [
        {
          "status": "affected",
          "version": ">= 6.3.0, < 6.3.4"
        },
        {
          "status": "affected",
          "version": ">= 6.2.0, < 6.2.7"
        },
        {
          "status": "affected",
          "version": ">= 6.0.0, < 6.1.6"
        },
        {
          "status": "affected",
          "version": ">= 5.0.0, < 5.4.19"
        },
        {
          "status": "affected",
          "version": "< 4.5.14"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2025-46565",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "poc"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2025-05-02T17:38:51.291423Z"
            }
          }
        }
      ],
      "references": [
        {
          "url": "https://github.com/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3",
          "tags": [
            "exploit"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2025-05-02T17:38:55.291Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-859w-5945-r5v3",
  "aliases": [
    "CVE-2025-46565"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "6.3.0"
            },
            {
              "fixed": "6.3.4"
            }
          ]
        }
      ],
      "package": {
        "name": "vite",
        "purl": "pkg:npm/vite",
        "ecosystem": "npm"
      },
      "versions": [],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-859w-5945-r5v3/GHSA-859w-5945-r5v3.json",
        "last_known_affected_version_range": "<= 6.3.3"
      }
    },
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.2.7"
            }
          ]
        }
      ],
      "package": {
        "name": "vite",
        "purl": "pkg:npm/vite",
        "ecosystem": "npm"
      },
      "versions": [],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-859w-5945-r5v3/GHSA-859w-5945-r5v3.json",
        "last_known_affected_version_range": "<= 6.2.6"
      }
    },
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "6.0.0"
            },
            {
              "fixed": "6.1.6"
            }
          ]
        }
      ],
      "package": {
        "name": "vite",
        "purl": "pkg:npm/vite",
        "ecosystem": "npm"
      },
      "versions": [],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-859w-5945-r5v3/GHSA-859w-5945-r5v3.json",
        "last_known_affected_version_range": "<= 6.1.5"
      }
    },
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "5.0.0"
            },
            {
              "fixed": "5.4.19"
            }
          ]
        }
      ],
      "package": {
        "name": "vite",
        "purl": "pkg:npm/vite",
        "ecosystem": "npm"
      },
      "versions": [],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-859w-5945-r5v3/GHSA-859w-5945-r5v3.json",
        "last_known_affected_version_range": "<= 5.4.18"
      }
    },
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.5.14"
            }
          ]
        }
      ],
      "package": {
        "name": "vite",
        "purl": "pkg:npm/vite",
        "ecosystem": "npm"
      },
      "versions": [],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-859w-5945-r5v3/GHSA-859w-5945-r5v3.json",
        "last_known_affected_version_range": "<= 4.5.13"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V4",
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/vitejs/vite/security/advisories/GHSA-859w-5945-r5v3",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-46565",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/vitejs/vite/commit/c22c43de612eebb6c182dd67850c24e4fab8cacb",
      "type": "WEB"
    },
    {
      "url": "https://github.com/vitejs/vite",
      "type": "PACKAGE"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-22"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": "2025-05-01T18:15:57Z",
    "github_reviewed_at": "2025-04-30T17:40:27Z"
  }
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundarynpm / packageviteNot a distribution channel6.3.4Official record
ecosystem-boundarynpm / packageviteNot a distribution channel6.2.7Official record
ecosystem-boundarynpm / packageviteNot a distribution channel6.1.6Official record
ecosystem-boundarynpm / packageviteNot a distribution channel5.4.19Official record
ecosystem-boundarynpm / packageviteNot a distribution channel4.5.14Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history