8.7high
DeepCode 1.2.0 Path Traversal via SPA Catch-All Route in main.py
- Severity
- 8.7high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.38% (higher than 33% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| HKUDS DeepCode | up to 1.2.0, up to c991dc22e67958a031f2e20595128a6a5fbd8f3d | CVE List, NVD |
All scores
| VulnCheck | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| VulnCheck | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
DeepCode a través del commit c991dc2 contiene una vulnerabilidad de salto de ruta en la ruta comodín de SPA en new_ui/backend/main.py que permite a atacantes no autenticados leer archivos arbitrarios al proporcionar segmentos de ruta codificados por porcentaje al endpoint GET /{full_path:path}. Los atacantes pueden eludir la normalización de rutas de Starlette codificando las barras diagonales como %2F y los puntos como %2E%2E, haciendo que la ruta unida se desplace fuera de FRONTEND_DIST y exponiendo archivos sensibles como claves privadas SSH, certificados TLS y secretos de aplicación con una única solicitud HTTP.
References
| https://github.com/HKUDS/DeepCode/issues/126 | exploit, issue-tracking | |
| https://www.vulncheck.com/advisories/deepcode-path-traversal-via-spa-catch-all-route-in-main-py | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-32847 changed 2026-07-14 | CVE Terms of Use |
| NVD | CVE-2026-32847 changed 2026-10-26 | Public domain |