82 行
3.1 KiB
JSON
82 行
3.1 KiB
JSON
{
|
|
"canonical_id": "vite--CVE-2025-31125",
|
|
"system_id": "vite",
|
|
"display_name": "Vite",
|
|
"category": "frameworks",
|
|
"advisory_mode": "core",
|
|
"title": "Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query",
|
|
"summary": "### Summary\n\nThe contents of arbitrary files can be returned to the browser.\n\n### Impact\nOnly apps explicitly exposing the Vite dev server to the network (using `--host` or [`server.host` config option](https://vitejs.dev/config/server-options.html#server-host)) are affected.\n\n### Details\n\n- base64 encoded content of non-allowed files is exposed using `?inline&import` (originally reported as `?import&?inline=1.wasm?init`)\n- content of non-allowed files is exposed using `?raw?import`\n\n`/@fs/` isn't needed to reproduce the issue for files inside the project root.\n\n### PoC\n\nOriginal report (check details above for simplified cases):\n\nThe ?import&?inline=1.wasm?init ending allows attackers to read arbitrary files and returns the file content if it exists. Base64 decoding needs to be performed twice\n```\n$ npm create vite@latest\n$ cd vite-project/\n$ npm install\n$ npm run dev\n```\n\nExample full URL `http://localhost:5173/@fs/C:/windows/win.ini?import&?inline=1.wasm?init`",
|
|
"published_at": "2025-03-31T17:31:54Z",
|
|
"updated_at": "2026-02-04T04:37:24.129476Z",
|
|
"severity": "low",
|
|
"cvss_score": 3.1,
|
|
"exploit_status": "unknown",
|
|
"source_confidence": "official",
|
|
"official_source_url": "https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8",
|
|
"secondary_source_urls": [
|
|
"https://nvd.nist.gov/vuln/detail/CVE-2025-31125",
|
|
"https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949",
|
|
"https://github.com/vitejs/vite",
|
|
"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125"
|
|
],
|
|
"aliases": [
|
|
"CVE-2025-31125",
|
|
"GHSA-4r4m-qw57-chr8"
|
|
],
|
|
"cve_ids": [
|
|
"CVE-2025-31125"
|
|
],
|
|
"ghsa_ids": [
|
|
"GHSA-4r4m-qw57-chr8"
|
|
],
|
|
"osv_ids": [
|
|
"GHSA-4r4m-qw57-chr8"
|
|
],
|
|
"affected_versions": [
|
|
"introduced=6.2.0, fixed<6.2.4",
|
|
"introduced=6.1.0, fixed<6.1.3",
|
|
"introduced=6.0.0, fixed<6.0.13",
|
|
"introduced=5.0.0, fixed<5.4.16",
|
|
"introduced=0, fixed<4.5.11"
|
|
],
|
|
"fixed_versions": [
|
|
"6.2.4",
|
|
"6.1.3",
|
|
"6.0.13",
|
|
"5.4.16",
|
|
"4.5.11"
|
|
],
|
|
"package_name": "vite",
|
|
"render_markdown": true,
|
|
"case_path": "07-framework-security/frameworks/vite/cases/vite-cve-2025-31125.md",
|
|
"secure_code_topics": [
|
|
"dependency-upgrade-policy",
|
|
"file-upload-validation",
|
|
"proxy-trust-boundary"
|
|
],
|
|
"status": "generated",
|
|
"triage_reasons": [],
|
|
"verification_status": "triage-manual",
|
|
"verification_mode": "synthetic",
|
|
"last_verified_at": null,
|
|
"last_run_id": null,
|
|
"evidence_bundle": null,
|
|
"browser_evidence": {
|
|
"required": false,
|
|
"present": false,
|
|
"refs": []
|
|
},
|
|
"repro_profile_id": "proxy-boundary-generic",
|
|
"artifact_mode": "synthetic",
|
|
"blocked_reason": null,
|
|
"metadata": {
|
|
"source_names": [
|
|
"OSV Vite"
|
|
],
|
|
"source_kinds": [
|
|
"osv-batch"
|
|
],
|
|
"candidate_count": 1
|
|
}
|
|
}
|