Description
A vulnerability was identified in NousResearch hermes-agent up to 2026.5.29.2. Affected by this issue is the function MatrixAdapter._markdown_to_html of the file gateway/platforms/matrix.py of the component Matrix Adapter. Such manipulation leads to cross site scripting. The attack can be executed remotely. The exploit is publicly available and might be used. The pull request to fix this issue awaits acceptance.
Published: 2026-07-09
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw resides in MatrixAdapter._markdown_to_html within gateway/platforms/matrix.py. Untrusted markdown input is transformed into HTML without proper sanitization, allowing an attacker to inject malicious scripts. When this function processes user‑supplied content that is then displayed in a Matrix client, arbitrary scripts can run in the victim’s browser context. Credential theft, session hijacking, phishing or defacement – and it can be triggered remotely.

Affected Systems

This vulnerability affects NousResearch’s hermes‑agent component, up to and including version 2026.5.29.2. Any deployment of hermes‑agent that exposes the MatrixAdapter endpoint to external inputs is at risk.

Risk and Exploitability

The CVSS base score of 5.1 indicates a moderate severity. The EPSS score is <1%, indicating a very low exploitation probability, but the exploit is publicly available, allowing an attacker to deploy malicious markdown messages remotely that get rendered in client‑side browsers, thereby creating a relatively high risk in environments where users consume Matrix content. The vulnerability is associated with CWE‑79 (XSS) and CWE‑94 (Code Injection).

Generated by OpenCVE AI on July 29, 2026 at 11:37 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Disable or restrict the MatrixAdapter endpoint to trusted users or internal networks until a fix is released.
  • Patch the MatrixAdapter._markdown_to_html function locally to sanitize or escape markdown output before converting to HTML.
  • Upgrade to a hermes‑agent release that includes the merged fix for CVE‑2026‑15311; monitor the NousResearch repository for the resolution of the pending pull request.

Generated by OpenCVE AI on July 29, 2026 at 11:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 10 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 10 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Description A vulnerability was identified in NousResearch hermes-agent up to 2026.5.29.2. Affected by this issue is the function MatrixAdapter._markdown_to_html of the file gateway/platforms/matrix.py of the component Matrix Adapter. Such manipulation leads to cross site scripting. The attack can be executed remotely. The exploit is publicly available and might be used. The pull request to fix this issue awaits acceptance.
Title NousResearch hermes-agent Matrix Adapter matrix.py MatrixAdapter._markdown_to_html cross site scripting
First Time appeared Nousresearch
Nousresearch hermes-agent
Weaknesses CWE-79
CWE-94
CPEs cpe:2.3:a:nousresearch:hermes-agent:*:*:*:*:*:*:*:*
Vendors & Products Nousresearch
Nousresearch hermes-agent
References
Metrics cvssV2_0

{'score': 4, 'vector': 'AV:N/AC:L/Au:S/C:N/I:P/A:N/E:POC/RL:ND/RC:C'}

cvssV3_0

{'score': 3.5, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:C'}

cvssV3_1

{'score': 3.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:C'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P'}


Subscriptions

Nousresearch Hermes-agent
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-07-10T14:12:45.061Z

Reserved: 2026-07-09T17:49:30.256Z

Link: CVE-2026-15311

cve-icon Vulnrichment

Updated: 2026-07-10T14:12:40.262Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T11:45:03Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')