CVE-2026-140425: Hermes Agent 0.16.0 before 0.22.7 Session Token Theft via Dashboard CORS
Published Dec 1, 2026
·Updated
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.
Affected Software
1 affected component
Nous Research Hermes Agent>=0.16.0<0.22.7
Event History
Dec 1, 2026
CVE Published
via OSV·03:43 PM
Data Sourced
via OSV·03:43 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:18 PM
DescriptionSeverityWeakness
Frequently Asked Questions
1
Does an attacker need prior access or credentials on the host?
The CVSS vector indicates no privileges are required before exploitation, but user interaction is required. The described attack relies on attacker-controlled content being available from another localhost port and stealing the dashboard session token.
2
What can an attacker do after obtaining the dashboard session token?
They can open the dashboard WebSocket endpoint and invoke shell.exec to run operating-system commands. They can also read files through the file-download API.