{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "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"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "b200f5bc60e31588ba2cb60e288029c4a54ba5fa"
            },
            {
              "fixed": "5e7c2b254d414e4e25105231f818f385fee67469"
            }
          ],
          "repo": "https://github.com/nousresearch/hermes-agent",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-1385"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140425.json"
  },
  "details": "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.",
  "id": "CVE-2026-140425",
  "modified": "2026-12-01T16:45:43.505291048Z",
  "published": "2026-12-01T15:43:55.462Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140425.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/NousResearch/hermes-agent"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/NousResearch/hermes-agent/blob/v2026.7.20/hermes_cli/web_server.py#L304"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/NousResearch/hermes-agent/blob/v2026.7.20/hermes_cli/web_server.py#L449"
    },
    {
      "type": "FIX",
      "url": "https://github.com/NousResearch/hermes-agent/commit/5e7c2b254d414e4e25105231f818f385fee67469"
    },
    {
      "type": "FIX",
      "url": "https://github.com/NousResearch/hermes-agent/pull/146636"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/NousResearch/hermes-agent/releases/tag/v0.22.7"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-140425"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/hermes-agent-0.16.0-before-0.22.7-session-token-theft-via-dashboard-cors"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Hermes Agent 0.16.0 before 0.22.7 Session Token Theft via Dashboard CORS"
}