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

MatrixAdapter._markdown_to_html processes user–supplied Markdown into HTML for display in Matrix clients. The function does not correctly sanitize or escape malicious content, allowing an attacker to inject JavaScript or other executable code into the HTML output. When a victim loads a Matrix message that contains the injected content, the script runs in their browser. The vulnerability is classified as CWE‑79 (Cross‑Site Scripting) and CWE‑94 (Code Injection), and the CVSS base score of 5.1 indicates a moderate severity.

Affected Systems

Any installation of NousResearch’s hermes‑agent component that is version 2026.5.29.2 or earlier is affected, because the vulnerable MatrixAdapter module resides in gateway/platforms/matrix.py. Deployments exposing the MatrixAdapter endpoint to external or untrusted users are at risk. No other assets are mentioned.

Risk and Exploitability

The EPSS score is reported as <1 %, indicating a low likelihood of exploitation, yet the exploit is publicly available on GitHub and can be executed remotely. An attacker can craft malicious Markdown that is rendered as HTML by a Matrix client, enabling script execution in the victim’s browser. Damage is contingent on end users viewing the compromised content, so the risk is moderate but should not be ignored. The vulnerability is not listed in CISA’s KEV catalog, but its remote nature and client‑side impact warrant monitoring and timely remediation.

Generated by OpenCVE AI on August 3, 2026 at 04:16 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Restrict or disable the MatrixAdapter endpoint so that only trusted clients can send messages through it until a fix is released.
  • Apply a local patch that sanitizes or escapes user input before converting it to HTML, preventing malicious scripts from being included.
  • Monitor the NousResearch GitHub repository for the merge of the pending pull request, and upgrade to a hermes‑agent version that includes the fix as soon as it is available.

Generated by OpenCVE AI on August 3, 2026 at 04:16 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

Status : Deferred

Published: 2026-07-10T00:16:32.853

Modified: 2026-07-10T15:43:30.330

Link: CVE-2026-15311

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T04:30:18Z

Weaknesses
  • CWE-79

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

  • CWE-94

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