Skip to main content

hermes-agent CVE-2026-15311

| EUVDEUVD-2026-42764 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-07-09 VulDB GHSA-93m6-38r7-vqmh
2.0
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with low-privilege account
  2. Delivery
    Craft markdown with embedded XSS payload
  3. Exploit
    Send message via Matrix Adapter
  4. Execution
    _markdown_to_html renders unsanitized HTML
  5. Persist
    Victim views message in client
  6. Impact
    Injected script executes in victim's browser

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) the attacker holds a valid authenticated low-privilege account on the targeted hermes-agent instance (PR:L - unauthenticated exploitation is not supported by the CVSS vector); (2) the hermes-agent deployment has the Matrix Adapter integration enabled, since the vulnerable function exists solely in gateway/platforms/matrix.py and is not reachable through other platform adapters; (3) a victim user must passively view the attacker-crafted message in their Matrix client (UI:P). Exploitation is limited to integrity impact only - no confidentiality or availability consequences are established. Deployments that do not use Matrix integration are entirely unaffected regardless of version.

Impact

The CVSS 4.0 score of 2.0 (AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N) accurately characterizes this as low severity. Two structural limiters depress real-world risk: the attacker must hold a valid low-privilege account (PR:L), and a victim must passively view the crafted message (UI:P). The impact metrics - no confidentiality loss (VC:N, SC:N), only low integrity impact (VI:L), no availability impact - reflect a constrained blast radius. The E:P supplemental metric acknowledges publicly available POC code, which lowers the skill bar for exploitation. No CISA KEV listing exists, and no EPSS data was provided in the input, so exploitation probability cannot be quantified further. The most significant risk signal is the unmerged patch status: the fix is a pending pull request (#42759) with no confirmed released version, leaving all deployments exposed with no vendor-supplied binary update. The combination of a niche product, required authentication, required victim interaction, and low impact makes this a genuine but low-priority finding for most organizations.

Exploit ScenarioDerived

An authenticated user on a hermes-agent instance with the Matrix Adapter enabled crafts a markdown message embedding a malicious payload - for example, an image tag with an onerror handler or a hyperlink using a javascript: URI - and sends it to a shared Matrix room or direct channel. The _markdown_to_html function renders the message without sanitization, embedding the script in the HTML output. When another authenticated user's client displays the message, the injected JavaScript executes in their browser session, potentially exfiltrating session tokens or performing actions on their behalf. A publicly available proof-of-concept at https://github.com/NousResearch/hermes-agent/issues/42667 demonstrates the technique, reducing attacker skill requirements.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 10, 2026

Cross-site scripting in NousResearch hermes-agent (all versions through 2026.5.29.2) stems from unsanitized markdown-to-HTML conversion in the Matrix Adapter component, allowing an authenticated remote attacker to inject malicious scripts into Matrix platform messages. When a victim views the crafted content, the injected script executes in their browser context. Publicly available exploit code exists (GitHub issue #42667), though no public exploit identified at time of analysis maps to confirmed active exploitation - the CVSS 4.0 score of 2.0 reflects the low severity, limited scope, and required victim interaction.

RemediationAI

No official patched release has been confirmed - the upstream fix is pending review as pull request #42759 at https://github.com/NousResearch/hermes-agent/pull/42759. Organizations needing immediate mitigation can manually apply the changes from that PR, accepting the risk that unreviewed code may introduce instability. The most effective compensating control is to disable or remove the Matrix Adapter integration entirely if Matrix connectivity is not required, which eliminates the vulnerable code path with no functional side effect for non-Matrix deployments. If Matrix integration must remain active, restrict the ability to send markdown-formatted content to trusted, high-privilege accounts only, increasing the effective privilege requirement beyond PR:L. Monitor the GitHub repository at https://github.com/NousResearch/hermes-agent/ and the VulDB advisory at https://vuldb.com/vuln/377247 for an official patched release incorporating PR #42759.

Affected VersionsENISA

hermes-agent 2026.5.29.2
hermes-agent 2026.5.29.0
hermes-agent 2026.5.29.1

Affected Packages

euvd hermes_agent no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-site Scripting) in the function MatrixAdapter._markdown_to_html within gateway/platforms/matrix.py. This component bridges hermes-agent - an AI agent orchestration framework by NousResearch - to the Matrix open federated messaging protocol. The function processes user-supplied markdown input and renders it to HTML without adequately neutralizing embedded HTML tags or JavaScript event handlers, meaning attacker-controlled content passes through into the final HTML output delivered to other clients. The affected CPE is cpe:2.3:a:nousresearch:hermes-agent:*:*:*:*:*:*:*:*, covering all releases up to 2026.5.29.2. Only deployments with the Matrix Adapter integration active are in scope.

Know when Hermes Agent gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 2.0 MEDIUM
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
vuln.today AI 5.4 MEDIUM

Network-delivered XSS via Matrix messages requires PR:L (authenticated sender) and UI:R (victim must view); scope changes to victim browser session with low C/I impact.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
Jul 10, 2026 - 00:22 NVD
MEDIUM LOW
CVSS changed
Jul 10, 2026 - 00:22 NVD
5.1 (MEDIUM) 2.0 (LOW)

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Rare
niche AI agent framework, limited enterprise production footprint
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2026-71963 HIGH POC
8.6 Sep 03

Remote code execution in NousResearch Hermes Agent 0.18.2-0.21.0 allows an unauthenticated attacker to execute arbitrary

CVE-2026-9367 MEDIUM POC
5.5 May 24

Remote command injection in NousResearch hermes-agent allows unauthenticated attackers to execute arbitrary OS commands

CVE-2026-14628 MEDIUM POC
5.5 Jul 04

Path traversal in NousResearch hermes-agent (all versions through 2026.5.16) exposes arbitrary server-side files via the

CVE-2026-9351 MEDIUM POC
5.5 May 24

Path traversal in NousResearch hermes-agent through version 2026.4.16 allows remote unauthenticated attackers to bypass

CVE-2026-9368 MEDIUM POC
5.5 May 24

Remote sandbox escape in NousResearch hermes-agent versions up to 2026.4.16 allows unauthenticated attackers to manipula

CVE-2026-7396 MEDIUM POC
5.5 Apr 29

Path traversal in NousResearch hermes-agent 0.8.0 exposes arbitrary server-side files to unauthenticated remote attacker

CVE-2026-10221 MEDIUM POC
5.5 Jun 01

Remote code/prompt injection in NousResearch Hermes Agent through 0.12.0 stems from improper neutralization in the _comp

CVE-2026-10220 MEDIUM POC
5.5 Jun 01

Remote injection in NousResearch Hermes Agent through version 2026.4.30 allows unauthenticated attackers to manipulate t

CVE-2026-9366 MEDIUM POC
5.5 May 24

Code injection in NousResearch hermes-agent 2026.4.23 allows remote unauthenticated attackers to inject and execute arbi

CVE-2026-9354 MEDIUM POC
5.5 May 24

Improper output escaping in NousResearch Hermes Agent versions up to 2026.4.16 allows remote unauthenticated attackers t

CVE-2026-9353 MEDIUM POC
5.5 May 24

Remote injection vulnerability in NousResearch hermes-agent versions up to 2026.4.23 enables unauthenticated attackers t

CVE-2026-10224 MEDIUM POC
5.5 Jun 01

Uncontrolled resource consumption in NousResearch hermes-agent (all versions through 2026.4.30) allows remote unauthenti

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy