7.5High

CVE-2026-32847DeepCode 1.2.0 Path Traversal via SPA Catch-All Route in main.py

HKUDS DeepCode Published: (5 months ago)

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.

Weakness (CWE): CWE-22

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
HKUDS DeepCode ≤ 1.2.0

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:hkuds:deepcode:*:*:*:*:*:*:*:* ≤ 1.2.0