{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "3.2.5"
              },
              {
                "introduced": "4.0.0"
              },
              {
                "fixed": "4.1.0"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "introduced": "da7ce1712fd4d0e4e807ec01ce755581e6892d5b"
            },
            {
              "fixed": "2cbad0a923c48c6144266df3cd25f93547cb5221"
            },
            {
              "fixed": "4150b913171bda3971a4a4c47c633c26d0c6ae45"
            },
            {
              "fixed": "20e00ef7808de6d330c5e2fda530f686e08f1c8d"
            },
            {
              "fixed": "af88b1f5d82844a4761ea9a977156c98e2b14ca8"
            }
          ],
          "repo": "https://github.com/vitest-dev/vitest",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5xrq-8626-4rwp"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47429.json"
  },
  "details": "Vitest is a testing framework powered by Vite. Prior to 3.2.5 and 4.1.0, the Vitest UI/API server on Windows used isFileServingAllowed incorrectly for /__vitest_attachment__, allowing \\\\?\\\\..\\\\ path traversal to read files outside the project; exposed API write and rerun features such as saveTestFile and rerun could also allow arbitrary script execution. This issue is fixed in versions 3.2.5 and 4.1.0.",
  "id": "CVE-2026-47429",
  "modified": "2026-07-23T03:56:14.636252978Z",
  "published": "2026-07-14T19:28:08.688Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/vitest-dev/vitest/releases/tag/v3.2.5"
    },
    {
      "type": "WEB",
      "url": "https://github.com/vitest-dev/vitest/releases/tag/v4.1.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47429.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/vitest-dev/vitest/security/advisories/GHSA-5xrq-8626-4rwp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-47429"
    },
    {
      "type": "FIX",
      "url": "https://github.com/vitest-dev/vitest/commit/20e00ef7808de6d330c5e2fda530f686e08f1c8d"
    },
    {
      "type": "FIX",
      "url": "https://github.com/vitest-dev/vitest/commit/af88b1f5d82844a4761ea9a977156c98e2b14ca8"
    },
    {
      "type": "FIX",
      "url": "https://github.com/vitest-dev/vitest/pull/10445"
    },
    {
      "type": "FIX",
      "url": "https://github.com/vitest-dev/vitest/pull/9350"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Vitest: Arbitrary file can be read and executed when Vitest UI server is listening"
}