{"schemaVersion":3,"id":"CVE-2025-31486","aliases":["GHSA-xcj6-pq6g-qj4x","CGA-fg68-7pxm-f4w3","CGA-vjgq-m8vq-pppj","CGA-vqhr-p693-5ffq","CGA-w4jq-6qpg-48x8"],"status":"published","duplicateOf":null,"title":null,"description":"Vite is a frontend tooling framework for javascript. The contents of arbitrary files can be returned to the browser. By adding ?.svg with ?.wasm?init or with sec-fetch-dest: script header, the server.fs.deny restriction was able to bypass. This bypass is only possible if the file is smaller than build.assetsInlineLimit (default: 4kB) and when using Vite 6.0+. 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 4.5.12, 5.4.17, 6.0.14, 6.1.4, and 6.2.5.","dates":{"published":"2025-04-03T18:24:39.616Z","modified":"2025-04-03T20:39:28.939Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/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.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/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.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","exploitability":4.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","exploitability":4.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.40461,"percentile":0.98636,"severity":"high","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.40461},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.40461,"percentile":0.98636}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.40461,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.40461,"percentile":0.98636}]},"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-200","name":"Exposure of Sensitive Information to an Unauthorized Actor","description":"The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-284","name":"Improper Access Control","description":"The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.","type":"weakness","status":"Incomplete","abstraction":"Pillar","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/284.html"}],"affected":[{"vendor":"chainguard","product":"langfuse-2-worker","name":"langfuse-2-worker","label":"langfuse-2-worker","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/langfuse-2-worker","purlType":"apk","versions":[{"text":"< 2.95.12-r26","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.95.12-r26","eol":null,"hubHref":null},{"vendor":"chainguard","product":"langfuse-fips-2-worker","name":"langfuse-fips-2-worker","label":"langfuse-fips-2-worker","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/langfuse-fips-2-worker","purlType":"apk","versions":[{"text":"< 2.95.12-r28","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.95.12-r28","eol":null,"hubHref":null},{"vendor":"Npm","product":"vite","name":"vite","label":"vite","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/vite","purlType":"npm","versions":[{"text":"≥ 6.2.0, < 6.2.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.1.0, < 6.1.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 6.0.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.4.17","noFixRecorded":false,"fixedIn":null},{"text":"< 4.5.12","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 6.2.0, < 6.2.5 | ≥ 6.1.0, < 6.1.4 | ≥ 6.0.0, < 6.0.14 | ≥ 5.0.0, < 5.4.17 | < 4.5.12","eol":null,"hubHref":null},{"vendor":"vitejs","product":"vite","name":"vite","label":"vite","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 4.5.12","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.4.17","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 6.0.14","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.1.0, < 6.1.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.2.0, < 6.2.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.5.12 | ≥ 5.0.0, < 5.4.17 | ≥ 6.0.0, < 6.0.14 | ≥ 6.1.0, < 6.1.4 | ≥ 6.2.0, < 6.2.5","eol":null,"hubHref":"/vendor/vitejs/vite"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vitejs/vite/security/advisories/GHSA-xcj6-pq6g-qj4x","label":"github.com/vitejs/vite/security/advisories/GHSA-xcj6-pq6g-qj4x","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory"]},{"url":"https://github.com/vitejs/vite/commit/62d7e81ee189d65899bb65f3263ddbd85247b647","label":"github.com/vitejs/vite/commit/62d7e81ee189d65899bb65f3263ddbd85247b647","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX"]},{"url":"https://github.com/vitejs/vite/blob/037f801075ec35bb6e52145d659f71a23813c48f/packages/vite/src/node/plugins/asset.ts#L285-L290","label":"github.com/vitejs/…","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31486","label":"nvd.nist.gov/vuln/detail/CVE-2025-31486","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/vitejs/vite","label":"github.com/vitejs/vite","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31486.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31486.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-7XX7-8WPQ-9VQ4"]},"timeline":[{"kind":"published","date":"2025-04-03T18:24:39.616Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-03T20:39:28.939Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":29,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T01:16:05.000Z","stale":false,"partial":false}}