CVE-2026-15311

NousResearch hermes-agent Matrix Adapter matrix.py MatrixAdapter._markdown_to_html cross site scripting

Published Jul 9, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-79

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

  • CWE-94

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

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Jul 10, 2026, 2:12 PM
Reserved
Jul 9, 2026, 5:49 PM
Status
Deferred
Published
Jul 10, 2026, 12:16 AM
Modified
Oct 25, 2026, 3:10 PM