{
  "id": "CVE-2025-24963",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-24963",
  "published_at": "2025-02-04T19:36:52.385Z",
  "title": "Browser mode serves arbitrary files in vitest",
  "vendor": "vitest-dev",
  "product": "vitest",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-02-05T13:18:32Z",
    "first_seen_at": "2026-11-14T14:50:35.824Z",
    "days_after_publication": 0.7,
    "source": "nuclei",
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-24963.yaml"
  },
  "poc_repo_count": 1,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": 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.",
  "cwe": "CWE-22",
  "cpes": [
    "cpe:2.3:a:vitest.dev:vitest:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 5.9,
    "nvd": 7.5
  },
  "repos": [
    {
      "repo": "0xdeviner/CVE-2025-24963",
      "url": "https://github.com/0xdeviner/CVE-2025-24963",
      "created_at": "2025-04-23T08:01:49Z",
      "first_seen_at": "2026-11-14T21:44:13.198Z",
      "stars": 0,
      "is_poc": "unknown",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2020-03-09T05:25:08Z"
    },
    {
      "repo": "hiteshpatra/CVE-2025-24963",
      "url": "https://github.com/hiteshpatra/CVE-2025-24963",
      "created_at": "2025-04-23T08:01:49Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-03-09T05:25:08Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "vitest-dev",
        "product": "vitest",
        "ranges": [
          "\u003e= 2.0.4, \u003c 2.1.9",
          "\u003e= 3.0.0, \u003c 3.0.4"
        ],
        "fixed_in": [
          "2.1.9",
          "3.0.4"
        ]
      }
    ],
    "upgrade": [
      "Upgrade vitest to 2.1.9 or 3.0.4 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/vitest-dev/vitest/security/advisories/GHSA-8gvc-j273-4wm5"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/vitest-dev/vitest/commit/2d62051f13b4b0939b2f7e94e88006d830dc4d1f"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-24963.yaml",
      "source": "nuclei",
      "title": "nuclei template: Vitest Browser Mode - Local File Read",
      "published_at": "2025-02-05T13:18:32Z",
      "first_seen_at": "2026-11-16T08:31:11.222Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/__screenshot-error",
      "query_markers": [
        "file=../../../../../../etc/passwd"
      ],
      "ports": [
        63315
      ],
      "protocol": "http",
      "repos": [
        "hiteshpatra/CVE-2025-24963"
      ],
      "repo_count": 1,
      "confidence": 0.9,
      "evidence": [
        "hiteshpatra/CVE-2025-24963/README.md:31"
      ]
    }
  ],
  "rules": []
}
