{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "4.0.0"
                  },
                  {
                    "fixed": "6.4.6"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "7.0.0"
                  },
                  {
                    "fixed": "7.3.8"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "8.0.0"
                  },
                  {
                    "fixed": "8.1.7"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "8.2.0"
                  },
                  {
                    "fixed": "8.2.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "8.3.0"
                  },
                  {
                    "fixed": "8.3.7"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "1.5.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "4b4291018a34d1591a6a18ab5c406d5b6a7a4ea1"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "517affb174632db347a6a2426f12eab020277946"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "8ef8a1b27bcd0e8e7693569f98b52b1b111025ca"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "e5f23b60f0c46a906a60986faad88a5bd7611a15"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v6.4.6",
                "range": [
                  {
                    "fixed": "129b54cb423c69048f6a9b5d5766033c0173ef77"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v7.3.8",
                "range": [
                  {
                    "fixed": "dd44573ca4df1546d8da17b6956d6a8b1e4cf821"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v8.1.7",
                "range": [
                  {
                    "fixed": "c9641f8f0faf8a848a7ebad8e61fd6922ec1aebd"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v8.2.5",
                "range": [
                  {
                    "fixed": "acbb01190818b68c97fe7181feda775ed1f4e00f"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v8.3.7",
                "range": [
                  {
                    "fixed": "5def936009d2637a48d056e197aebc6242ac27c6"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "566d4c7bb51cf56550a5374ee46e1e1cbea1cf1f"
            },
            {
              "fixed": "129b54cb423c69048f6a9b5d5766033c0173ef77"
            },
            {
              "introduced": "b85f32275b443bf6b647572a9209f1e078b5b4dd"
            },
            {
              "fixed": "dd44573ca4df1546d8da17b6956d6a8b1e4cf821"
            },
            {
              "introduced": "b565af6f1123a62b3058253b2147574b8515e89f"
            },
            {
              "fixed": "c9641f8f0faf8a848a7ebad8e61fd6922ec1aebd"
            },
            {
              "introduced": "fa79f9ab699f9a22a6f9b50f3d247be6b51f684d"
            },
            {
              "fixed": "acbb01190818b68c97fe7181feda775ed1f4e00f"
            },
            {
              "introduced": "434e8e9495436a60789f2b588a04a6a24a3d1661"
            },
            {
              "fixed": "5def936009d2637a48d056e197aebc6242ac27c6"
            },
            {
              "introduced": "0"
            },
            {
              "fixed": "365e3ad224e83e99811e61edd8a6aab7b2280cce"
            },
            {
              "fixed": "4b4291018a34d1591a6a18ab5c406d5b6a7a4ea1"
            },
            {
              "fixed": "517affb174632db347a6a2426f12eab020277946"
            },
            {
              "fixed": "8ef8a1b27bcd0e8e7693569f98b52b1b111025ca"
            },
            {
              "fixed": "e5f23b60f0c46a906a60986faad88a5bd7611a15"
            }
          ],
          "repo": "https://github.com/vitejs/vite",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-p4f5-76q4-ffq7"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-116"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140097.json"
  },
  "details": "Vite is a frontend tooling framework for JavaScript. From 4.0.0 until 6.4.6, 7.3.8, 8.1.7, 8.2.5, and 8.3.7 in Vite, and prior to 1.5.1 in vite-plus, a network-exposed development server embeds request-derived module identifiers from the __vite-browser-external:\u003csuffix\u003e and __vite-optional-peer-dep:\u003csuffix\u003e virtual modules into trusted generated JavaScript without escaping. A remote unauthenticated attacker can inject an import that adds an outside file to the server.fs module allow list and can reach server-side evaluation through new Worker or import.meta.glob processing, allowing disclosure of local files and arbitrary code execution in the development-server process. This issue is fixed in Vite 6.4.6, 7.3.8, 8.1.7, 8.2.5, and 8.3.7, and in vite-plus 1.5.1.",
  "id": "CVE-2026-140097",
  "modified": "2026-11-30T23:45:16.003351436Z",
  "published": "2026-11-30T22:25:25.829Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140097.json"
    },
    {
      "type": "WEB",
      "url": "https://github.com/vitejs/vite/blob/v6.4.6/packages/vite/CHANGELOG.md"
    },
    {
      "type": "WEB",
      "url": "https://github.com/vitejs/vite/blob/v7.3.8/packages/vite/CHANGELOG.md"
    },
    {
      "type": "WEB",
      "url": "https://github.com/vitejs/vite/blob/v8.1.7/packages/vite/CHANGELOG.md"
    },
    {
      "type": "WEB",
      "url": "https://github.com/vitejs/vite/blob/v8.2.5/packages/vite/CHANGELOG.md"
    },
    {
      "type": "FIX",
      "url": "https://github.com/vitejs/vite/commit/4b4291018a34d1591a6a18ab5c406d5b6a7a4ea1"
    },
    {
      "type": "FIX",
      "url": "https://github.com/vitejs/vite/commit/517affb174632db347a6a2426f12eab020277946"
    },
    {
      "type": "FIX",
      "url": "https://github.com/vitejs/vite/commit/8ef8a1b27bcd0e8e7693569f98b52b1b111025ca"
    },
    {
      "type": "FIX",
      "url": "https://github.com/vitejs/vite/commit/e5f23b60f0c46a906a60986faad88a5bd7611a15"
    },
    {
      "type": "FIX",
      "url": "https://github.com/vitejs/vite/pull/24043"
    },
    {
      "type": "FIX",
      "url": "https://github.com/vitejs/vite/pull/24044"
    },
    {
      "type": "WEB",
      "url": "https://github.com/vitejs/vite/releases/tag/v6.4.6"
    },
    {
      "type": "WEB",
      "url": "https://github.com/vitejs/vite/releases/tag/v7.3.8"
    },
    {
      "type": "WEB",
      "url": "https://github.com/vitejs/vite/releases/tag/v8.1.7"
    },
    {
      "type": "WEB",
      "url": "https://github.com/vitejs/vite/releases/tag/v8.2.5"
    },
    {
      "type": "WEB",
      "url": "https://github.com/vitejs/vite/releases/tag/v8.3.7"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/vitejs/vite/security/advisories/GHSA-p4f5-76q4-ffq7"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-140097"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Vite: Remote code execution using `__vite-browser-external` virtual module"
}