CVEMETERBack to radar
OFFICIAL RECORD · JavaScript packages

CVE-2025-31486

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 5.3 · medium

Vite allows server.fs.deny to be bypassed with .svg or relative paths

Vite is a frontend tooling framework for javascript. The contents of arbitrary files can be returned to the browser. By adding ?.svg with ?.wasm?init or with sec-fetch-dest: script header, the server.fs.deny restriction was able to bypass. This bypass is only possible if the file is smaller than build.assetsInlineLimit (default: 4kB) and when using Vite 6.0+. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. This vulnerability is fixed in 4.5.12, 5.4.17, 6.0.14, 6.1.4, and 6.2.5.

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

Severity and exploitation evidence

EPSS: 40.461% · 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-19T16:57:41.748Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 5.3 · published by GitHub_M
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Assessment source · checked 2026-11-19T12:57:31.267Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:57:41.748ZCISA KEV
cvssverified2026-11-19T12:57:31.267ZCVE Program
epssverified2026-11-19T16:04:40.588ZFIRST EPSS
patchesverified2026-11-19T12:51:58.234ZOSV
affectedverified2026-11-19T12:57:31.267ZCVE Program
lifecycleverified2026-11-19T12:57:31.267ZCVE Program

Affected versions and configuration

vitejs vite; default status: unknown: < 4.5.12 [affected; scheme: unspecified]; >=5.0.0, < 5.4.17 [affected; scheme: unspecified]; >=6.0.0, < 6.0.14 [affected; scheme: unspecified]; >=6.1.0, < 6.1.4 [affected; scheme: unspecified]; >=6.2.0, < 6.2.5 [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": "< 4.5.12"
        },
        {
          "status": "affected",
          "version": ">=5.0.0, < 5.4.17"
        },
        {
          "status": "affected",
          "version": ">=6.0.0, < 6.0.14"
        },
        {
          "status": "affected",
          "version": ">=6.1.0, < 6.1.4"
        },
        {
          "status": "affected",
          "version": ">=6.2.0, < 6.2.5"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2025-31486",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "poc"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2025-04-03T20:39:24.672022Z"
            }
          }
        }
      ],
      "references": [
        {
          "url": "https://github.com/vitejs/vite/security/advisories/GHSA-xcj6-pq6g-qj4x",
          "tags": [
            "exploit"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2025-04-03T20:39:28.939Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-xcj6-pq6g-qj4x",
  "aliases": [
    "CVE-2025-31486"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.2.5"
            }
          ]
        }
      ],
      "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-xcj6-pq6g-qj4x/GHSA-xcj6-pq6g-qj4x.json"
      }
    },
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "6.1.0"
            },
            {
              "fixed": "6.1.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-xcj6-pq6g-qj4x/GHSA-xcj6-pq6g-qj4x.json"
      }
    },
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "6.0.0"
            },
            {
              "fixed": "6.0.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-xcj6-pq6g-qj4x/GHSA-xcj6-pq6g-qj4x.json"
      }
    },
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "5.0.0"
            },
            {
              "fixed": "5.4.17"
            }
          ]
        }
      ],
      "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-xcj6-pq6g-qj4x/GHSA-xcj6-pq6g-qj4x.json"
      }
    },
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.5.12"
            }
          ]
        }
      ],
      "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-xcj6-pq6g-qj4x/GHSA-xcj6-pq6g-qj4x.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/vitejs/vite/security/advisories/GHSA-xcj6-pq6g-qj4x",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-31486",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/vitejs/vite/commit/62d7e81ee189d65899bb65f3263ddbd85247b647",
      "type": "WEB"
    },
    {
      "url": "https://github.com/vitejs/vite",
      "type": "PACKAGE"
    },
    {
      "url": "https://github.com/vitejs/vite/blob/037f801075ec35bb6e52145d659f71a23813c48f/packages/vite/src/node/plugins/asset.ts#L285-L290",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-200",
      "CWE-284"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": "2025-04-03T19:15:39Z",
    "github_reviewed_at": "2025-04-04T14:20:05Z"
  }
}
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.2.5Official record
ecosystem-boundarynpm / packageviteNot a distribution channel6.1.4Official record
ecosystem-boundarynpm / packageviteNot a distribution channel6.0.14Official record
ecosystem-boundarynpm / packageviteNot a distribution channel5.4.17Official record
ecosystem-boundarynpm / packageviteNot a distribution channel4.5.12Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history