{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-112948",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-10-19T21:30:47.245Z",
        "datePublished": "2026-10-20T15:15:01.927Z",
        "dateUpdated": "2026-10-20T16:16:59.623Z"
    },
    "containers": {
        "cna": {
            "title": "Vitest: Servers misapply `server.fs.deny`, serving `.env`, private keys, `.git`, and the API token file",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-200",
                            "lang": "en",
                            "description": "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-552",
                            "lang": "en",
                            "description": "CWE-552: Files or Directories Accessible to External Parties",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 6.5,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "NONE",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/vitest-dev/vitest/security/advisories/GHSA-p458-7748-mcp3",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/vitest-dev/vitest/security/advisories/GHSA-p458-7748-mcp3"
                },
                {
                    "name": "https://github.com/vitest-dev/vitest/pull/11578",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/vitest-dev/vitest/pull/11578"
                },
                {
                    "name": "https://github.com/vitest-dev/vitest/commit/28dc1edfb6ba5a181fe208576989063795aeadb3",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/vitest-dev/vitest/commit/28dc1edfb6ba5a181fe208576989063795aeadb3"
                },
                {
                    "name": "https://github.com/vitest-dev/vitest/releases/tag/v5.0.5",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/vitest-dev/vitest/releases/tag/v5.0.5"
                }
            ],
            "affected": [
                {
                    "vendor": "vitest-dev",
                    "product": "vitest",
                    "versions": [
                        {
                            "version": ">= 5.0.0-beta.6, < 5.0.5",
                            "status": "affected"
                        }
                    ]
                },
                {
                    "vendor": "@vitest",
                    "product": "browser",
                    "versions": [
                        {
                            "version": ">= 5.0.0-beta.6, < 5.0.5",
                            "status": "affected"
                        }
                    ]
                },
                {
                    "vendor": "@vitest",
                    "product": "ui",
                    "versions": [
                        {
                            "version": ">= 5.0.0-beta.6, < 5.0.5",
                            "status": "affected"
                        }
                    ]
                },
                {
                    "vendor": "vitejs",
                    "product": "vite-plus",
                    "versions": [
                        {
                            "version": ">= 1.0.0-rc.0, < 1.3.0",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-10-20T15:15:01.927Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Vitest is a testing framework powered by Vite. From 5.0.0-beta.6 until 5.0.5, Vitest dev servers can misapply server.fs.deny because project servers replace Vite's defaults and the root server adds .vitest-secret-token after Vite compiles its matcher. An attacker who can reach an affected UI, Browser Mode, or API server can read denied project files or the fallback API token at node_modules/.vitest/.vitest-secret-token, and Browser Mode with test.projects can expose JavaScript-compatible .env values through a malicious website. This issue is fixed in version 5.0.5."
                }
            ],
            "source": {
                "advisory": "GHSA-p458-7748-mcp3",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-10-20T16:16:51.150771Z",
                                "id": "CVE-2026-112948",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-10-20T16:16:59.623Z"
                }
            }
        ]
    }
}