CVE-2026-140425 · NousResearch / hermes-agent
CVE-2026-140425
Full advisory details, affected packages, severity context, and original source.
Affected technology
Affected versions and fixes
Version information comes from OSV, NVD, and the CVE vendor record. Each source may describe a different package, release branch, or platform.
NousResearch / hermes-agent · semver
CVE vendor record- affected: From 0.16.0 (inclusive) · before 0.22.7 (exclusive) · semver
Fixed releases / commits: Not explicitly provided by this source. Check the vendor guidance.
Repository: https://github.com/NousResearch/hermes-agent
Other versions: unaffected according to the vendor record.
Advisory overview
Hermes Agent 0.16.0 before 0.22.7 contains a permissive CORS and WebSocket origin check that lets other local-port pages steal the dashboard session token. Attacker content on another localhost port reads the token from GET /, opens /api/ws, calls shell.exec to run OS commands, and reads files via /api/files/download.
How Cevnitra tracks this
Cevnitra stores this NVD record in the public advisory mirror so scans and watchlists can match CVE-2026-140425 against your inventory.
Related references
- https://github.com/NousResearch/hermes-agent/blob/v2026.7.20/hermes_cli/web_server.py#L304
- https://github.com/NousResearch/hermes-agent/blob/v2026.7.20/hermes_cli/web_server.py#L449
- https://github.com/NousResearch/hermes-agent/commit/5e7c2b254d414e4e25105231f818f385fee67469
- https://github.com/NousResearch/hermes-agent/pull/146636
- https://github.com/NousResearch/hermes-agent/releases/tag/v0.22.7
- https://www.vulncheck.com/advisories/hermes-agent-0.16.0-before-0.22.7-session-token-theft-via-dashboard-cors
