Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2026-18430

CVE-2026-18430: HumHub Stored XSS Vulnerability

CVE-2026-18430 is a stored XSS flaw in HumHub 1.18.4 affecting the comment-deletion notification flow. Space administrators can inject malicious scripts via deletion reasons. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated:

CVE-2026-18430 Overview

CVE-2026-18430 is a stored cross-site scripting (XSS) vulnerability in HumHub 1.18.4. The flaw resides in the comment-deletion notification flow. A Space administrator can delete another user's comment, opt to notify the original author, and inject HTML or JavaScript into the deletion reason field. The malicious payload is stored and rendered when the notification is delivered to the target user, executing in the victim's browser session. The issue is tracked under [CWE-79] and affects the HumHub social networking platform.

Critical Impact

An authenticated Space administrator can execute arbitrary JavaScript in a targeted user's browser session, enabling session theft, account takeover, and unauthorized actions on behalf of the victim.

Affected Products

  • HumHub 1.18.4
  • HumHub social networking platform (comment notification component)
  • Deployments running the vulnerable comment-deletion notification flow

Discovery Timeline

  • 2026-08-19 - CVE-2026-18430 published to NVD
  • 2026-08-19 - Last updated in NVD database

Technical Details for CVE-2026-18430

Vulnerability Analysis

The vulnerability exists in HumHub's comment moderation workflow. When a Space administrator deletes another user's comment, the interface offers an option to notify the comment author with a free-form reason. HumHub 1.18.4 fails to sanitize or encode the reason string before storing it and rendering it inside the notification delivered to the original author. As a result, HTML tags and inline JavaScript embedded in the reason are executed in the recipient's browser when the notification is viewed.

Successful exploitation runs attacker-controlled script in the context of the victim's authenticated HumHub session. Attackers can steal session cookies, issue authenticated API calls, modify user data, or pivot to phishing overlays within the trusted application origin. The vulnerability requires an authenticated Space administrator account and interaction from the targeted user, who must view the notification.

Root Cause

The root cause is missing output encoding of user-controlled input on a moderation code path. The deletion reason field is treated as trusted administrative text and rendered as HTML rather than being HTML-escaped. This violates the standard XSS prevention guidance of encoding untrusted input at the point of output, as classified under [CWE-79].

Attack Vector

Exploitation requires an attacker with Space administrator privileges on a target HumHub instance. The attacker selects a comment authored by the intended victim, invokes the deletion action, enables the "notify author" option, and supplies a deletion reason containing an XSS payload such as an inline event handler or <script> tag. When the victim opens the resulting notification, the browser executes the payload under the HumHub origin. Additional technical detail is available in the Fluid Attacks Security Advisory and the upstream fix in the HumHub Pull Request #8365.

Detection Methods for CVE-2026-18430

Indicators of Compromise

  • Notification records or database rows containing HTML tags such as <script>, <img onerror=, or <svg onload= inside comment-deletion reason fields.
  • Unexpected outbound requests from user browsers to attacker-controlled domains shortly after opening a HumHub notification.
  • Session token or cookie exfiltration events originating from the HumHub application origin.

Detection Strategies

  • Review HumHub audit logs for comment deletions performed by Space administrators where the notify-author option was enabled.
  • Query the notifications table for stored reason strings containing angle brackets, javascript: URIs, or common XSS keywords.
  • Inspect web server access logs for anomalous requests correlated with notification view events.

Monitoring Recommendations

  • Enable and monitor Content Security Policy (CSP) violation reports to detect blocked inline script execution attempts.
  • Alert on privileged Space administrator actions that generate notifications to non-administrator users.
  • Track HumHub version inventory to identify instances still running 1.18.4 or earlier vulnerable builds.

How to Mitigate CVE-2026-18430

Immediate Actions Required

  • Upgrade HumHub to a fixed release incorporating the changes from HumHub Pull Request #8365.
  • Audit existing Space administrator accounts and remove unnecessary elevated privileges.
  • Review historical notifications for stored payloads and purge malicious entries from the database.

Patch Information

The upstream fix is available in the HumHub project on GitHub. The remediation adds proper output encoding of the deletion reason before it is rendered in the notification. Administrators should apply the patched release from the HumHub Repository and validate that the notification renderer escapes HTML in the reason field.

Workarounds

  • Restrict the Space administrator role to trusted users only until the patch is applied.
  • Disable the "notify author" option in the comment deletion workflow where the configuration permits.
  • Deploy a strict Content Security Policy that forbids inline script execution to reduce the impact of stored XSS payloads.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.