CVE-2026-22677: nesquena Hermes WebUI path traversal in session import endpoint

CVE-2026-22677 · Severity: medium · CVSS 6.5 · Published 2026-05-13

Hermes WebUI, a web interface for managing sessions and workspaces, contains a security flaw in how it handles imported session files. An authenticated user can upload a specially crafted session file that bypasses directory restrictions, allowing them to read sensitive files from the underlying server's filesystem. This could lead to the exposure of system configuration files or other private data, potentially compromising the security of the host machine.

Technologies: Nesquena Hermes WebUI. Vendors: Nesquena.

Quick answers

Is CVE-2026-22677 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-22677 being exploited in the wild.
How severe is CVE-2026-22677?
Medium severity, with a CVSS score of 6.5, published 13 May 2026.
Which products and versions are affected?
Nesquena Hermes WebUI < 0.51.44.
Is there a fix for CVE-2026-22677?
A patch was published on 2026-05-10: Fix committed to repository. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-22677 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2026-22677?
Check whether you run Nesquena Hermes WebUI at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A path traversal vulnerability exists in the `_handle_session_import()` function within `api/routes.py` of Hermes WebUI. While standard session creation uses `resolve_trusted_workspace()` to validate paths, the session import endpoint previously trusted the `workspace` field from user-supplied JSON directly. An authenticated attacker can import a session with the workspace set to a restricted root (e.g., "/") and subsequently use the session file API (e.g., `/api/file`) with relative paths to read any file accessible by the WebUI process. This issue is resolved in version 0.51.44 by enforcing workspace validation during the import process.

Affected products

  • nesquena Hermes WebUI < 0.51.44

Timeline

  • 2026-05-10: patched: Fix committed to repository.
  • 2026-05-11: advisory: Release v0.51.44 published.
  • 2026-05-13: disclosed: CVE published to NVD.

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.