CVE-2026-32847 Details
Description
DeepCode through commit c991dc2 contains a path traversal vulnerability in the SPA catch-all route in new_ui/backend/main.py that allows unauthenticated attackers to read arbitrary files by supplying percent-encoded path segments to the GET /{full_path:path} endpoint. Attackers can bypass Starlette's path normalization by encoding slashes as %2F and dots as %2E%2E, causing the joined path to traverse outside FRONTEND_DIST and exposing sensitive files such as SSH private keys, TLS certificates, and application secrets with a single HTTP request.
A path traversal vulnerability has been identified in DeepCode versions through 1.2.0, specifically in the SPA catch-all route of the backend main.py file. This vulnerability allows unauthenticated attackers to read arbitrary files by sending percent-encoded path segments to the GET /{full_path:path} endpoint. The issue arises because the application fails to properly validate file paths, enabling attackers to bypass Starlette's path normalization. By encoding slashes and dots, they can traverse outside the designated frontend distribution directory, accessing sensitive files such as SSH private keys, TLS certificates, and application secrets with a single HTTP request.
A patch has been developed and is available in the DeepCode GitHub repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/HKUDS/DeepCode/issues/126 | [email protected] | ExploitIssue Tracking |
| https://www.vulncheck.com/advisories/deepcode-path-traversal-via-spa-catch-all-route-in-main-py | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| hkuds deepcode | <= 1.2.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 26, 2026 | CVE Translated | [email protected] |
| Jul 14, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 3, 2026 | Initial Analysis | [email protected] |
| May 28, 2026 | New CVE Received | [email protected] |