# CVE-2026-140425: Hermes Agent 0.16.0 before 0.22.7 Session Token Theft via Dashboard CORS

- Severity: High 7.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T15:43:55.462Z
- Modified: 2026-12-01T16:18:21.290Z
- Weaknesses: CWE-1385
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- NousResearch hermes-agent: from 0.16.0 before 0.22.7

## Every score

- VulnCheck: CVSS:4.0 7.3 High `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`
- VulnCheck: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/NousResearch/hermes-agent/pull/146636> (issue-tracking, patch)
- <https://github.com/NousResearch/hermes-agent/commit/5e7c2b254d414e4e25105231f818f385fee67469> (patch)
- <https://github.com/NousResearch/hermes-agent/releases/tag/v0.22.7> (release-notes)
- <https://github.com/NousResearch/hermes-agent/blob/v2026.7.20/hermes_cli/web_server.py#L304> (technical-description)
- <https://github.com/NousResearch/hermes-agent/blob/v2026.7.20/hermes_cli/web_server.py#L449> (technical-description)
- <https://www.vulncheck.com/advisories/hermes-agent-0.16.0-before-0.22.7-session-token-theft-via-dashboard-cors> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-140425](https://www.cve.org/CVERecord?id=CVE-2026-140425), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-140425](https://nvd.nist.gov/vuln/detail/CVE-2026-140425), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-140425 · Whole record: https://cve.day/CVE-2026-140425.json · Rebuilt by cve.day 2026-12-01T16:32:21.530Z
