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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203