Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Network endpoints require an authenticated session (PR:L); path traversal escapes the application workspace boundary (S:C), enabling full read and write of arbitrary OS files (C:H/I:H); availability impact is secondary and partial (A:L).
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
6DescriptionCVE.org
nesquena hermes-webui contains a trust-boundary failure vulnerability that allows authenticated attackers to set or change a session workspace to an arbitrary existing directory on disk by manipulating workspace path parameters in endpoints such as /api/session/new, /api/session/update, /api/chat/start, and /api/workspaces/add. Attackers can repoint a session workspace to a directory outside the intended trusted root and then use ordinary file read and write APIs to access or modify files outside the intended workspace boundary within the permissions of the hermes-webui process.
AnalysisAI
Path traversal in nesquena hermes-webui allows any authenticated user to redirect a session workspace to an arbitrary existing directory on the host filesystem by supplying attacker-controlled paths to four POST endpoints. Once the workspace is redirected, the attacker leverages the application's own file read and write APIs to access or modify files well outside the intended workspace sandbox, bounded only by the OS-level permissions of the hermes-webui process. No public exploit is identified at time of analysis and this is not listed in CISA KEV; vendor-patched release v0.50.34 is available.
Technical ContextAI
hermes-webui (CPE: cpe:2.3:a:nesquena:hermes-webui:*:*:*:*:*:*:*:*) is a web-based UI for AI agent workflows. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), a trust-boundary failure in which the application expanded and resolved caller-supplied workspace paths via Python's Path(path).expanduser().resolve() but applied no containment check against the application's intended workspace root. This affected four POST endpoints: /api/session/new, /api/session/update, /api/chat/start, and /api/workspaces/add. The fix, introduced in api/workspace.py as resolve_trusted_workspace(), resolves the candidate path and enforces candidate.relative_to(_BOOT_DEFAULT_WORKSPACE) containment, returning HTTP 400 for any path outside the boot-time workspace root. The BOOT_DEFAULT_WORKSPACE anchor respects the HERMES_WEBUI_DEFAULT_WORKSPACE environment variable, ensuring consistency between the application's workspace root and what new_session() seeds as the initial workspace.
RemediationAI
Upgrade to hermes-webui v0.50.34, available at the GitHub release tag https://github.com/nesquena/hermes-webui/releases/tag/v0.50.34 and as commit 2a7a5ddfaf39e3b0094b7ac37e9f1dbcf40a3918 (https://github.com/nesquena/hermes-webui/commit/2a7a5ddfaf39e3b0094b7ac37e9f1dbcf40a3918). This release introduces resolve_trusted_workspace() in api/workspace.py and applies it to all four vulnerable endpoints, rejecting out-of-root paths with HTTP 400. As a compensating control before patching, run the hermes-webui process under a dedicated OS user account with read/write permissions restricted to only the intended workspace directory tree, which limits the files an attacker can reach via workspace redirection without eliminating the vulnerability itself - a trade-off between operational ease and exposure reduction. Additionally, restrict network access to the hermes-webui API to trusted authenticated users only, reducing the pool of potential attackers.
More in Hermes Webui
View allUnauthenticated remote code execution in Hermes WebUI before version 0.51.788 lets remote attackers run arbitrary shell
Authentication bypass in Hermes WebUI before 0.51.307 lets unauthenticated remote attackers reach onboarding endpoints t
Authentication bypass in Hermes WebUI before 0.51.409 allows unauthenticated remote attackers to register the first pass
Unauthenticated initial-setup hijack in Hermes WebUI before 0.51.358 allows any remote attacker who can reach the settin
Cross-profile authorization bypass in Hermes WebUI before 0.51.368 allows authenticated users to access sessions, files,
Arbitrary file deletion in Hermes WebUI (nesquena/hermes-webui, all versions prior to the PR #409 fix) allows an authent
Information disclosure in Hermes WebUI before v0.51.221 allows authenticated remote attackers to read arbitrary files ou
Cross-profile data disclosure in Hermes WebUI before 0.51.269 allows authenticated users to read session titles and tran
Cross-profile session data exfiltration in Hermes WebUI before 0.51.443 lets any authenticated user retrieve session tra
Cross-profile session disclosure in Hermes WebUI before 0.51.443 lets any authenticated user retrieve conversation trans
Resource exhaustion in Hermes WebUI before v0.51.270 allows unauthenticated remote attackers to degrade service availabi
Resource exhaustion in Hermes WebUI before 0.51.468 exposes an unauthenticated POST /api/onboarding/oauth/start endpoint
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-24506
GHSA-rppv-5944-crmm