{
  "id": "CVE-2025-31125",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-31125",
  "published_at": "2025-03-31T17:06:30.704Z",
  "title": "Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query",
  "vendor": "vitejs",
  "product": "vite",
  "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": true,
    "added_at": "2026-01-22",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 297
  },
  "first_poc": {
    "created_at": "2025-04-01T14:24:44Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 0.9,
    "repo": "sunhuiHi666/CVE-2025-31125",
    "source": "github"
  },
  "poc_repo_count": 8,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Vite is a frontend tooling framework for javascript. Vite exposes content of non-allowed files using ?inline\u0026import or ?raw?import. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. This vulnerability is fixed in 6.2.4, 6.1.3, 6.0.13, 5.4.16, and 4.5.11.",
  "cwe": "CWE-200",
  "cpes": [
    "cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*"
  ],
  "cvss_by_source": {
    "cna": 5.3,
    "nvd": 7.5
  },
  "repos": [
    {
      "repo": "nak000/Vitejs-exploit-CVE-2025-31125-rce",
      "url": "https://github.com/nak000/Vitejs-exploit-CVE-2025-31125-rce",
      "created_at": null,
      "first_seen_at": "2026-11-14T21:44:13.198Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "xuemian168/CVE-2025-30208",
      "url": "https://github.com/xuemian168/CVE-2025-30208",
      "created_at": "2025-03-26T10:26:12Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 50,
      "is_poc": "yes",
      "kind": "scanner",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-04-26T00:57:21Z"
    },
    {
      "repo": "jackieya/ViteVulScan",
      "url": "https://github.com/jackieya/ViteVulScan",
      "created_at": "2025-03-31T13:43:45Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 7,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-12-14T13:29:05Z"
    },
    {
      "repo": "sunhuiHi666/CVE-2025-31125",
      "url": "https://github.com/sunhuiHi666/CVE-2025-31125",
      "created_at": "2025-04-01T14:24:44Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 6,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-07-09T23:31:46Z"
    },
    {
      "repo": "MuhammadWaseem29/Vitejs-exploit",
      "url": "https://github.com/MuhammadWaseem29/Vitejs-exploit",
      "created_at": "2025-05-03T18:41:42Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-03-02T09:22:01Z"
    },
    {
      "repo": "0xgh057r3c0n/CVE-2025-31125",
      "url": "https://github.com/0xgh057r3c0n/CVE-2025-31125",
      "created_at": "2025-05-07T07:45:10Z",
      "first_seen_at": "2026-11-18T16:05:56.708Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-09-05T03:10:16Z"
    },
    {
      "repo": "TehanG07/Vitejs-exploit",
      "url": "https://github.com/TehanG07/Vitejs-exploit",
      "created_at": "2025-05-17T09:12:38Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-10-15T16:14:48Z"
    },
    {
      "repo": "harshgupptaa/Path-Transversal-CVE-2025-31125-",
      "url": "https://github.com/harshgupptaa/Path-Transversal-CVE-2025-31125-",
      "created_at": "2025-07-13T16:42:41Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-09-23T15:41:24Z"
    },
    {
      "repo": "khadafigans/Vite-Exploit",
      "url": "https://github.com/khadafigans/Vite-Exploit",
      "created_at": "2025-09-12T22:20:44Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-06-27T11:06:41Z"
    },
    {
      "repo": "L15B04/Exploit-VITE-CVE-2025-30208-CVE-2025-31125",
      "url": "https://github.com/L15B04/Exploit-VITE-CVE-2025-30208-CVE-2025-31125",
      "created_at": "2026-10-18T10:16:40Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-05-24T09:51:15Z"
    },
    {
      "repo": "alinaclark672377250/Vitejs-exploit",
      "url": "https://github.com/alinaclark672377250/Vitejs-exploit",
      "created_at": "2026-11-18T18:15:18Z",
      "first_seen_at": "2026-11-18T18:46:12.351Z",
      "stars": 0,
      "is_poc": "unknown",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2026-08-07T12:34:56Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "vitejs",
        "product": "vite",
        "ranges": [
          "\u003e= 6.2.0, \u003c 6.2.4",
          "\u003e= 6.1.0, \u003c 6.1.3",
          "\u003e= 6.0.0, \u003c 6.0.13",
          "\u003e= 5.0.0, \u003c 5.4.16",
          "\u003c 4.5.11"
        ],
        "fixed_in": [
          "6.2.4",
          "6.1.3",
          "6.0.13",
          "5.4.16",
          "4.5.11"
        ]
      }
    ],
    "upgrade": [
      "Upgrade vite to 6.2.4 or 6.1.3 or 6.0.13 or 5.4.16 or 4.5.11 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-31125.yaml",
      "source": "nuclei",
      "title": "nuclei template: Vite Development Server - Path Traversal",
      "published_at": "2025-04-28T06:48:39Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/@fs/etc/passwd",
      "query_markers": [
        "import=",
        "?inline=1.wasm?init",
        "inline=1.wasm?init",
        "raw??"
      ],
      "ports": [
        80,
        443,
        3000,
        5173,
        8080
      ],
      "protocol": "http",
      "repos": [
        "0xgh057r3c0n/CVE-2025-31125",
        "xuemian168/CVE-2025-30208"
      ],
      "repo_count": 2,
      "confidence": 0.85,
      "evidence": [
        "0xgh057r3c0n/CVE-2025-31125/CVE-2025-31125.yaml:35",
        "xuemian168/CVE-2025-30208/main.py:158",
        "xuemian168/CVE-2025-30208/main.py:165-167",
        "xuemian168/CVE-2025-30208/main.py:160"
      ]
    },
    {
      "method": "GET",
      "path_template": "/@fs/%252e%252e/%252e%252e/%252e%252e/etc/passwd",
      "query_markers": [
        "import=",
        "?inline=1.wasm?init"
      ],
      "protocol": "http",
      "repos": [
        "0xgh057r3c0n/CVE-2025-31125"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "0xgh057r3c0n/CVE-2025-31125/CVE-2025-31125.yaml:43"
      ]
    },
    {
      "method": "GET",
      "path_template": "/@fs/../../../../../../../etc/passwd",
      "query_markers": [
        "import=",
        "?inline=1.wasm?init"
      ],
      "protocol": "http",
      "repos": [
        "0xgh057r3c0n/CVE-2025-31125"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "0xgh057r3c0n/CVE-2025-31125/CVE-2025-31125.yaml:39"
      ]
    },
    {
      "method": "GET",
      "path_template": "/@fs/C:/windows/win.ini",
      "query_markers": [
        "import=",
        "?inline=1.wasm?init"
      ],
      "protocol": "http",
      "repos": [
        "0xgh057r3c0n/CVE-2025-31125"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "0xgh057r3c0n/CVE-2025-31125/CVE-2025-31125.yaml:31"
      ]
    },
    {
      "method": "GET",
      "path_template": "/win.ini",
      "query_markers": [
        "import=",
        "inline=1.wasm?init",
        "raw??"
      ],
      "ports": [
        80,
        443,
        3000,
        5173,
        8080
      ],
      "protocol": "http",
      "repos": [
        "xuemian168/CVE-2025-30208"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "xuemian168/CVE-2025-30208/main.py:159",
        "xuemian168/CVE-2025-30208/main.py:165-167",
        "xuemian168/CVE-2025-30208/main.py:161"
      ]
    },
    {
      "method": "GET",
      "path_template": "/{var}",
      "query_markers": [
        "raw"
      ],
      "ports": [
        80,
        443,
        3000,
        5173,
        8080
      ],
      "protocol": "http",
      "repos": [
        "xuemian168/CVE-2025-30208"
      ],
      "repo_count": 1,
      "confidence": 0.6,
      "evidence": [
        "xuemian168/CVE-2025-30208/manual.py:121-127",
        "xuemian168/CVE-2025-30208/manual.py:249-250"
      ]
    }
  ],
  "rules": []
}
