{"schemaVersion":3,"id":"CVE-2025-24963","aliases":["GHSA-8gvc-j273-4wm5"],"status":"published","duplicateOf":null,"title":null,"description":"Vitest is a testing framework powered by Vite. The `__screenshot-error` handler on the browser mode HTTP server that responds any file on the file system. Especially if the server is exposed on the network by `browser.api.host: true`, an attacker can send a request to that handler from remote to get the content of arbitrary files.This `__screenshot-error` handler on the browser mode HTTP server responds any file on the file system. This code was added by commit `2d62051`. Users explicitly exposing the browser mode server to the network by `browser.api.host: true` may get any files exposed. This issue has been addressed in versions 2.1.9 and 3.0.4. Users are advised to upgrade. There are no known workarounds for this vulnerability.","dates":{"published":"2025-02-04T19:36:52.385Z","modified":"2025-02-12T20:51:28.011Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02403,"percentile":0.83895,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.02403},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02403,"percentile":0.83895}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02403,"percentile":0.83895}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"@vitest","product":"browser","name":"@vitest/browser","label":"browser","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@vitest/browser","purlType":"npm","versions":[{"text":"≥ 2.0.4, < 2.1.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.0, < 3.0.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.4, < 2.1.9 | ≥ 3.0.0, < 3.0.4","eol":null,"hubHref":null},{"vendor":"vitest-dev","product":"vitest","name":"vitest","label":"vitest","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.4, < 2.1.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.0, < 3.0.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.4, < 2.1.9 | ≥ 3.0.0, < 3.0.4","eol":null,"hubHref":"/vendor/vitest-dev/vitest"},{"vendor":"vitest.dev","product":"vitest","name":"vitest","label":"vitest","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.1.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.0, < 3.0.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.1.9 | ≥ 3.0.0, < 3.0.4","eol":null,"hubHref":"/vendor/vitestdev/vitest"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vitest-dev/vitest/security/advisories/GHSA-8gvc-j273-4wm5","label":"github.com/vitest-dev/vitest/security/advisories/GHSA-8gvc-j273-4wm5","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Vendor Advisory"]},{"url":"https://github.com/vitest-dev/vitest/commit/2d62051f13b4b0939b2f7e94e88006d830dc4d1f","label":"github.com/vitest-dev/vitest/commit/2d62051f13b4b0939b2f7e94e88006d830dc4d1f","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch"]},{"url":"https://github.com/vitest-dev/vitest/blob/f17918a79969d27a415f70431e08a9445b051e45/packages/browser/src/node/plugin.ts#L88-L130","label":"github.com/vitest-dev/…","hostname":"github.com","tags":["X Refsource MISC","WEB","Product"]},{"url":"https://vitest.dev/guide/browser/config.html#browser-api","label":"vitest.dev/guide/browser/config.html","hostname":"vitest.dev","tags":["X Refsource MISC","WEB","Product"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-24963","label":"nvd.nist.gov/vuln/detail/CVE-2025-24963","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/vitest-dev/vitest/commit/ed9aeba212df04b83ed01810780663ff2cdd0adf","label":"github.com/vitest-dev/vitest/commit/ed9aeba212df04b83ed01810780663ff2cdd0adf","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/vitest-dev/vitest","label":"github.com/vitest-dev/vitest","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-02-04T19:36:52.385Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-02-12T20:51:28.011Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T17:46:32.922Z","stale":false,"partial":false}}