{"schemaVersion":3,"id":"CVE-2025-31125","aliases":["GHSA-4r4m-qw57-chr8","CGA-263v-cc49-26mj","CGA-4896-x53g-6fgm","CGA-8552-282p-qpj2","CGA-q93q-3rhq-qgm9"],"status":"published","duplicateOf":null,"title":"Vite Vitejs Improper Access Control Vulnerability","description":"Vite is a frontend tooling framework for javascript. Vite exposes content of non-allowed files using ?inline&import 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.","dates":{"published":"2025-03-31T17:06:30.704Z","modified":"2026-01-23T16:58:37.048Z","reserved":null,"kevAdded":["2026-01-22T00:00:00.000Z"],"kevDue":["2026-02-12T00:00:00.000Z"]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.65189,"percentile":0.99251,"severity":"critical","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":6.726999999999994,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.58462},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.58462,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.58462,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.58462,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.58462,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.58462,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.58462,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.58462,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.58462,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.58462,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.58462,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.64688,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.64688,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.64688,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.64688,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.64688,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.64688,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.64688,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.64688,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.65189,"percentile":0.99251}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.58462,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.58462,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.58462,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.58462,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.64688,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.64688,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.64688,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.64688,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.64688,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.64688,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.64688,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.64688,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.65189,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.65189,"percentile":0.99251}]},"kev":{"state":"listed","entries":[{"source":"cisa","sourceLabel":"CISA","dateAdded":"2026-01-22T00:00:00.000Z","dueDate":"2026-02-12T00:00:00.000Z","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","name":"Vite Vitejs Improper Access Control Vulnerability","description":"Vite Vitejs contains an improper access control vulnerability that exposes content of non-allowed files using ?inline&import or ?raw?import. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected.","notes":[{"type":"text","value":"This vulnerability could affect an open-source component, third-party library, protocol, or proprietary implementation that could be used by different products. For more information, please see: https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2025-31125","label":"nvd.nist.gov/vuln/detail/CVE-2025-31125"}],"vendor":"Vite","product":"Vitejs","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}],"listedCount":1,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":true,"entry":{"source":"cisa","sourceLabel":"CISA","dateAdded":"2026-01-22T00:00:00.000Z","dueDate":"2026-02-12T00:00:00.000Z","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","name":"Vite Vitejs Improper Access Control Vulnerability","description":"Vite Vitejs contains an improper access control vulnerability that exposes content of non-allowed files using ?inline&import or ?raw?import. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected.","notes":[{"type":"text","value":"This vulnerability could affect an open-source component, third-party library, protocol, or proprietary implementation that could be used by different products. For more information, please see: https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2025-31125","label":"nvd.nist.gov/vuln/detail/CVE-2025-31125"}],"vendor":"Vite","product":"Vitejs","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_VITEJS_VITE","name":"Vite","source":"github","url":"https://github.com/vitejs/vite/issues/8498","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"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.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.1.0, < 6.1.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 6.0.13","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.4.16","noFixRecorded":false,"fixedIn":null},{"text":"< 4.5.11","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 6.2.0, < 6.2.4 | ≥ 6.1.0, < 6.1.3 | ≥ 6.0.0, < 6.0.13 | ≥ 5.0.0, < 5.4.16 | < 4.5.11","eol":null,"hubHref":null},{"vendor":"vitejs","product":"vite","name":"vite","label":"vite","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 4.5.11","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.4.16","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 6.0.13","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.1.0, < 6.1.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.2.0, < 6.2.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.5.11 | ≥ 5.0.0, < 5.4.16 | ≥ 6.0.0, < 6.0.13 | ≥ 6.1.0, < 6.1.3 | ≥ 6.2.0, < 6.2.4","eol":null,"hubHref":"/vendor/vitejs/vite"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8","label":"github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Exploit","Vendor Advisory"]},{"url":"https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949","label":"github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-31125","hostname":"www.cisa.gov","tags":["Government Resource","WEB","US Government Resource"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31125","label":"nvd.nist.gov/vuln/detail/CVE-2025-31125","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-31125.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31125.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-4V6J-3X59-754C","CGA-626W-CJP2-5G5G","CGA-67QH-WW6V-8FQ5","CGA-MP63-JVP6-FR38","CGA-P33Q-W2CJ-9FJC"]},"timeline":[{"kind":"published","date":"2025-03-31T17:06:30.704Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"kev-added","date":"2026-01-22T00:00:00.000Z","label":"Added to CISA KEV","detail":"Vite Vitejs Improper Access Control Vulnerability","source":"cisa"},{"kind":"modified","date":"2026-01-23T16:58:37.048Z","label":"Last modified","detail":"Vulnerability information updated.","source":null},{"kind":"kev-due","date":"2026-02-12T00:00:00.000Z","label":"CISA remediation due","detail":"Apply mitigations per vendor instructions.","source":"cisa"}],"risk":{"score":85,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T13:39:34.727Z","stale":false,"partial":false}}