CVE-2026-140425: Vulnerability in NousResearch Hermes-agent
Patch soon. 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.
CWE-1385
- Exploitation
- None confirmed
- Severity
- 7.3 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-98mv-wgm6-54f5
- Vector
- CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- Weakness
- CWE-1385
- Published
- 1 Dec 2026
- Last change
- 4 Dec 2026
Affected products
Affected versions and the first fixed release
- NousResearch Hermes-agent From 0.16.0 before 0.22.7. Fixed in 0.22.7
Advisories
Vendor and security advisories
- github.com/NousResearch/hermes-agent/blob/v2026.7.20/hermes_cli/web_server.py
- github.com/NousResearch/hermes-agent/blob/v2026.7.20/hermes_cli/web_server.py
- vulncheck.com/advisories/hermes-agent-0.16.0-before-0.22.7-session-token-theft-via-dash...
Patches and fixes
Updates, commits and release notes
- github.com/NousResearch/hermes-agent/pull/146636
- github.com/NousResearch/hermes-agent/commit/5e7c2b254d414e4e25105231f818f385fee67469
- github.com/NousResearch/hermes-agent/releases/tag/v0.22.7
Related
- Hermes-agent vulnerabilities Recent advisories, watch this product