
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-50735 is a directory traversal vulnerability in NextChat (also known as ChatGPT-Next-Web) affecting all versions through 2.16.0. The flaw exists in the application's WebDAV proxy, which fails to canonicalize or reject dot path segments (e.g., ../) in its catch-all route (/api/webdav/[...path]/route.ts), enabling attackers to access sensitive files outside the intended directory. It was published on November 3, 2025, with a proof-of-concept released the same day. The vulnerability carries a CVSS v3.1 base score of 7.5 (High) (Feedly, PoC Repo).
The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), where the WebDAV proxy route in app/api/webdav/[...path]/route.ts joins path segments from the URL directly using params.path.join("/") and appends them to the configured endpoint without normalizing or rejecting dot segments such as ... The path validation logic only checks whether the final constructed targetPath ends with an expected filename (e.g., backup.json) or folder name, but this check can be bypassed by crafting a path that traverses upward and then back to a string ending with the expected suffix. Exploitation requires no authentication (anonymous WebDAV endpoints are also affected) and no user interaction, making it remotely exploitable with low attack complexity (NextChat Source, PoC Repo).
Successful exploitation allows an attacker to read arbitrary files accessible to the NextChat server process by traversing outside the intended WebDAV storage directory. The primary impact is a high confidentiality breach — sensitive files such as configuration files, credentials, or other application data could be exposed. Integrity and availability are not directly impacted by this vulnerability, but exposed credentials could enable further compromise or lateral movement (Feedly).
A public proof-of-concept exploit was published on November 5, 2025, by researcher fai1424 on GitHub, with a detailed write-up linked from the PoC repository. The vulnerability requires no authentication and no user interaction, significantly lowering the barrier to exploitation. As of the disclosure date, the developer had not yet patched the vulnerability or responded to the researcher's report. There is no evidence of in-the-wild exploitation at this time, and the EPSS score is 0.00319 (approximately 0.32%), indicating a currently low but non-negligible probability of exploitation. CVE-2025-50735 is not listed in the CISA KEV catalog (PoC Repo, Feedly).
/api/webdav/ route is accessible and determine the configured WebDAV endpoint parameter (often visible in client-side configuration or network traffic).GET /api/webdav/../../etc/passwd/backup.json?endpoint=https://allowed-webdav-host.com/ — the path is joined without normalization, so .. segments are passed through to the upstream WebDAV server or used to resolve file paths.backup.json) after traversal, satisfying the targetPath.endsWith(fileName) check in the route handler./api/webdav/ containing ../ or URL-encoded dot-segment sequences (e.g., %2e%2e%2f) in the path portion of the URL./api/webdav/ with path components containing multiple segments traversing upward (e.g., ../../), especially those ending with backup.json.[Any Proxy] (from the route handler's logging) showing unexpected targetUrl values that include traversal sequences or paths outside the intended WebDAV storage directory.<STORAGE_KEY>/backup.json pattern.The primary remediation is to upgrade NextChat to a version beyond 2.16.0 once a patched release is available. As an interim workaround, administrators should disable WebDAV sync functionality if it is not actively required. Network-level controls such as firewall rules restricting access to the /api/webdav/ route to trusted IP ranges can reduce exposure. Additionally, implementing strict server-side path normalization (e.g., using path.resolve() or equivalent and verifying the result stays within the intended base directory) in app/api/webdav/[...path]/route.ts would address the root cause (Feedly, PoC Repo).
The researcher fai1424 noted in the PoC repository that as of the CVE publication date (November 3, 2025), the NextChat developer had not fixed the vulnerability nor responded to the disclosure report, also noting a companion XSS vulnerability (CVE-2025-50733) was similarly unaddressed. The CVE received automated coverage across vulnerability tracking platforms including VulnDB, CVEFeed, and CIRCL shortly after publication, but no significant vendor statement or broader security community commentary has been identified (PoC Repo).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."