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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-1385"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140425.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0.16.0"
},
{
"fixed": "0.22.7"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "5e7c2b254d414e4e25105231f818f385fee67469"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v0.22.7",
"range": [
{
"fixed": "b200f5bc60e31588ba2cb60e288029c4a54ba5fa"
}
],
"source": "REFERENCES_TAG"
}
]
}