CVE-2026-32847: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in HKUDS DeepCode
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.
AI Analysis
Technical Summary
The vulnerability exists in the new_ui/backend/main.py file of DeepCode, where the SPA catch-all route at GET /{full_path:path} improperly limits pathnames to a restricted directory. Attackers can encode slashes (%2F) and dots (%2E%2E) to bypass Starlette's path normalization, enabling traversal outside the intended FRONTEND_DIST directory. This allows reading of arbitrary files, including sensitive credentials and secrets, without authentication.
Potential Impact
Successful exploitation allows unauthenticated attackers to read arbitrary files on the server, potentially exposing sensitive information such as SSH private keys, TLS certificates, and application secrets. This can lead to further compromise of the system or its communications. The CVSS 4.0 score of 8.7 reflects a high-impact vulnerability with network attack vector, no required privileges or user interaction, and high confidentiality impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the affected endpoint if possible and monitor for suspicious requests attempting path traversal with encoded characters. Avoid exposing sensitive files in directories accessible by the web server.
CVE-2026-32847: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in HKUDS DeepCode
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.
CVSS v4.0
Score 8.7high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the new_ui/backend/main.py file of DeepCode, where the SPA catch-all route at GET /{full_path:path} improperly limits pathnames to a restricted directory. Attackers can encode slashes (%2F) and dots (%2E%2E) to bypass Starlette's path normalization, enabling traversal outside the intended FRONTEND_DIST directory. This allows reading of arbitrary files, including sensitive credentials and secrets, without authentication.
Potential Impact
Successful exploitation allows unauthenticated attackers to read arbitrary files on the server, potentially exposing sensitive information such as SSH private keys, TLS certificates, and application secrets. This can lead to further compromise of the system or its communications. The CVSS 4.0 score of 8.7 reflects a high-impact vulnerability with network attack vector, no required privileges or user interaction, and high confidentiality impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to the affected endpoint if possible and monitor for suspicious requests attempting path traversal with encoded characters. Avoid exposing sensitive files in directories accessible by the web server.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-03-16T18:11:41.758Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a189d28e29bf47b50227a07
Added to database: 5/28/2026, 7:53:12 PM
Last enriched: 5/28/2026, 7:53:23 PM
Last updated: 5/29/2026, 8:19:14 AM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.