{"id":"CVE-2025-31125","kind":"vulnerability","aliases":["CVE-2025-31125"],"related":[],"title":"vitejs vite: Vite is a frontend tooling framework for javascript","description":"WAF Release - 2026-02-16 · Changelog\n\n# Changelog\n\nNew updates and improvements at Cloudflare.\n\nFebruary 16, 2026\n\n## WAF Release - 2026-02-16\n\nThis week’s release introduces new detections for CVE-2025-68645 and CVE-2025-31125.\n\nKey Findings\n\n- CVE-2025-68645: A Local File Inclusion (LFI) vulnerability in the Webmail Classic UI of Zimbra Collaboration Suite (ZCS) 10.0 and 10.1 allows unauthenticated remote attackers to craft requests to the `/h/rest` endpoint, improperly influence internal dispatching, and include arbitrary files from the WebRoot directory.\n- CVE-2025-31125: Vite, the JavaScript frontend tooling framework, exposes content of non-allowed files via `?inline&import` when its development server is network-exposed, enabling unauthorized attackers to read arbitrary files and potentially leak sensitive information.\n\n| Ruleset | Rule ID | Legacy Rule ID | Description | Previous Action | New Action | Comments |\n| --- | --- | --- | --- | --- | --- | --- |\n| Cloudflare Managed Ruleset | ...833761f7 | N/A | Zimbra - Local File Inclusion - CVE:CVE-2025-68645 | Log | Block | This is a new detection. |\n| Cloudflare Managed Ruleset | ...950ed8c8 | N/A | Vite - WASM Import Path Traversal - CVE:CVE-2025-31125 | Log | Block | This is a new detection. |","summary":"Vite, a JavaScript build tool, has an access control flaw where its dev server exposes the contents of files it should block when a request uses ?inline&import or ?raw?import. An attacker who can reach the dev server can read those files, which can include secrets or source code.","severity":"high","cvss":7.5,"epss":null,"exploited":true,"exploited_at":"2026-01-22T00:00:00+00:00","products":[{"name":"Vite Vitejs","fixed":[],"affected":"","ecosystem":"vendor"},{"name":"vitejs vite","fixed":["4.5.11"],"affected":"< 4.5.11","ecosystem":"vendor"},{"name":"vitejs vite","fixed":["5.4.16"],"affected":">= 5.0.0, < 5.4.16","ecosystem":"vendor"},{"name":"vitejs vite","fixed":["6.0.13"],"affected":">= 6.0.0, < 6.0.13","ecosystem":"vendor"},{"name":"vitejs vite","fixed":["6.1.3"],"affected":">= 6.1.0, < 6.1.3","ecosystem":"vendor"},{"name":"vitejs vite","fixed":["6.2.4"],"affected":">= 6.2.0, < 6.2.4","ecosystem":"vendor"}],"ecosystems":["vendor"],"tags":["cloudflare","dev-server","exploited","javascript","lab-disclosure","package","self-hosted","vite"],"not_affected_if":["default-config","localhost-only","production-build-only"],"how_to_check":"Check whether the dev server is started with --host or sets server.host in vite.config; if it is not, the project is not exposed.\nConfirm the installed Vite version with: npx vite --version","fix":"Upgrade Vite to a patched release from the vendor's advisory; the sources do not name the fixed version.\nDo not run the dev server on a network interface; bind it to localhost or discontinue exposing it.","status":"open","published_at":"2025-03-31T17:15:43+00:00","first_seen_at":"2026-10-23T19:11:51+00:00","triaged_at":"2026-10-23T20:42:33+00:00","updated_at":"2026-10-24T19:12:57+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-10-23T20:42:33Z","model":"claude-haiku-5-5","output":{"fix":"Upgrade Vite to a patched release from the vendor's advisory; the sources do not name the fixed version.\nDo not run the dev server on a network interface; bind it to localhost or discontinue exposing it.","reach":"network","summary":"Vite, a JavaScript build tool, has an access control flaw where its dev server exposes the contents of files it should block when a request uses ?inline&import or ?raw?import. An attacker who can reach the dev server can read those files, which can include secrets or source code.","category":"package","who_cares":["vite","javascript","dev-server","self-hosted"],"confidence":0.6,"needs_auth":"no","worst_case":"Attacker reads arbitrary project files, including environment files and secrets","analyst_note":"Fixed Vite versions and exact mitigation steps are not in the sources; check the Vite GHSA advisory and the CISA KEV entry for the patched release.","how_to_check":"Check whether the dev server is started with --host or sets server.host in vite.config; if it is not, the project is not exposed.\nConfirm the installed Vite version with: npx vite --version\nunknown","needs_analyst":true,"not_affected_if":["default-config","production-build-only","localhost-only"],"user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.000481,"input_tokens":2559,"output_tokens":451,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'-02':96C,112C '-16':97C,113C '-2025':12A,15A,123C,127C,132C,177C,238C,259C '-31125':13A,16A,128C,178C,260C '-68645':124C,133C,239C '/h/rest':162C '10.0':150C '10.1':152C '16':107C '2026':95C,108C,111C '833761f7':230C '950ed8c8':250C 'access':50B 'action':223C,225C 'allow':153C,190C 'arbitrari':170C,208C 'attack':75B,156C,205C 'block':64B,241C,262C 'build':46B 'changelog':98C,99C 'classic':143C 'cloudflar':29B,105C,227C,247C 'code':92B 'collabor':147C 'comment':226C 'content':59B,186C 'control':51B 'craft':158C 'cve':11A,14A,122C,126C,131C,176C,236C,237C,257C,258C 'descript':221C 'detect':120C,246C,267C 'dev':31B,55B,80B 'dev-serv':30B 'develop':197C 'directori':175C 'disclosur':37B 'dispatch':167C 'enabl':203C 'endpoint':163C 'exploit':33B 'expos':57B,185C,202C 'februari':106C 'file':61B,85B,136C,171C,191C,209C,234C 'find':130C 'flaw':52B 'framework':8A,184C 'frontend':6A,182C 'host':41B 'id':217C,220C 'import':70B,73B,194C,254C 'improp':164C 'improv':103C 'includ':88B,169C 'inclus':137C,235C 'influenc':165C 'inform':214C 'inlin':69B,193C 'intern':166C 'introduc':118C 'javascript':10A,34B,45B,181C 'key':129C 'lab':36B 'lab-disclosur':35B 'leak':212C 'legaci':218C 'lfi':138C 'local':135C,233C 'log':240C,261C 'manag':228C,248C 'n/a':231C,251C 'network':201C 'network-expos':200C 'new':100C,119C,224C,245C,266C 'non':189C 'non-allow':188C 'packag':38B 'path':255C 'potenti':211C 'previous':222C 'raw':72B 'reach':78B 'read':83B,207C 'releas':94C,110C,117C 'remot':155C 'request':67B,159C 'rule':216C,219C 'ruleset':215C,229C,249C 'secret':89B 'self':40B 'self-host':39B 'sensit':213C 'server':32B,56B,81B,198C 'sourc':91B 'suit':148C 'tool':7A,47B,183C 'travers':256C 'ui':144C 'unauthent':154C 'unauthor':204C 'updat':101C 'use':68B 'via':192C 'vite':2A,3A,17A,20A,22A,24A,26A,28A,42B,43B,179C,252C 'vitej':1A 'vitejs':18A,19A,21A,23A,25A,27A 'vulner':139C 'waf':93C,109C 'wasm':253C 'webmail':142C 'webroot':174C 'week':115C 'zcs':149C 'zimbra':146C,232C","nicknames":[],"mitigations":[{"kind":"waf-rule","scope":null,"since":"2026-02-16","covers":"HTTP requests proxied through Cloudflare matching the Vite WASM import path traversal pattern (CVE-2025-31125), via Cloudflare Managed Ruleset rule ...950ed8c8","limits":"Traffic not proxied through Cloudflare; rule action changed from Log to Block; coverage beyond the rule's detection pattern is not stated","source":"https://developers.cloudflare.com/changelog/post/2026-02-16-waf-release/","vendor":"Cloudflare","seen_at":"2026-10-24T19:12:23Z","confidence":0.9,"source_title":"WAF Release - 2026-02-16 · Changelog","customer_action":"none stated; the document does not say customers must patch Vite"}],"who_affected":null,"tier":null,"verified":{},"analyst_revisit_at":null,"first_public_at":"2025-03-31T17:15:43+00:00","kev":{"dateAdded":"2026-01-22","dueDate":"2026-02-12","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.","knownRansomwareCampaignUse":"Unknown"},"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"kev","external_id":"CVE-2025-31125","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2025-31125","severity":null,"published_at":"2026-01-22T00:00:00+00:00","modified_at":null,"first_seen_at":"2026-10-23T19:11:51+00:00","fetched_at":"2026-10-25T13:39:29+00:00","note":null},{"source":"nvd","external_id":"CVE-2025-31125","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31125","severity":null,"published_at":"2025-03-31T17:15:43+00:00","modified_at":"2026-06-17T09:09:54+00:00","first_seen_at":"2026-10-23T23:44:51+00:00","fetched_at":"2026-10-23T23:44:51+00:00","note":null},{"source":"lab","external_id":"https://developers.cloudflare.com/changelog/post/2026-02-16-waf-release/#CVE-2025-31125","url":"https://developers.cloudflare.com/changelog/post/2026-02-16-waf-release/","severity":null,"published_at":"2026-02-16T19:12:20+00:00","modified_at":null,"first_seen_at":"2026-10-24T19:12:57+00:00","fetched_at":"2026-10-24T19:12:57+00:00","note":"Cloudflare: WAF Release - 2026-02-16 · Changelog"}],"documents":[{"id":2926,"url":"https://developers.cloudflare.com/changelog/post/2026-02-16-waf-release/","title":"Cloudflare: WAF Release - 2026-02-16 · Changelog","kind":"advisory","source":"lab","text":"WAF Release - 2026-02-16 · Changelog\n\n# Changelog\n\nNew updates and improvements at Cloudflare.\n\nFebruary 16, 2026\n\n## WAF Release - 2026-02-16\n\nThis week’s release introduces new detections for CVE-2025-68645 and CVE-2025-31125.\n\nKey Findings\n\n- CVE-2025-68645: A Local File Inclusion (LFI) vulnerability in the Webmail Classic UI of Zimbra Collaboration Suite (ZCS) 10.0 and 10.1 allows unauthenticated remote attackers to craft requests to the `/h/rest` endpoint, improperly influence internal dispatching, and include arbitrary files from the WebRoot directory.\n- CVE-2025-31125: Vite, the JavaScript frontend tooling framework, exposes content of non-allowed files via `?inline&import` when its development server is network-exposed, enabling unauthorized attackers to read arbitrary files and potentially leak sensitive information.\n\n| Ruleset | Rule ID | Legacy Rule ID | Description | Previous Action | New Action | Comments |\n| --- | --- | --- | --- | --- | --- | --- |\n| Cloudflare Managed Ruleset | ...833761f7 | N/A | Zimbra - Local File Inclusion - CVE:CVE-2025-68645 | Log | Block | This is a new detection. |\n| Cloudflare Managed Ruleset | ...950ed8c8 | N/A | Vite - WASM Import Path Traversal - CVE:CVE-2025-31125 | Log | Block | This is a new detection. |","published_at":"2026-02-16T19:12:20+00:00","relation":"advisory","confidence":null,"note":"Cloudflare disclosure page"}],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}