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

CVE-2026-90918: Joomla Core XSS in HTML Mail Templates

CVE-2026-90918 is a cross-site scripting vulnerability in Joomla Core HTML mail templates affecting versions 4.0.0-5.4.8 and 6.0.0-6.1.3. This post covers technical details, affected versions, and mitigation.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-90918 Overview

CVE-2026-90918 is a Cross-Site Scripting (XSS) vulnerability [CWE-79] affecting the HTML mail template feature in Joomla! Core. The flaw exists because the mail template subsystem lacks a proper output escaping mechanism. Attackers can inject script payloads that reach recipients through multiple extensions that rely on the shared template rendering path. Affected releases include Joomla 4.0.0 through 5.4.8 and 6.0.0 through 6.1.3. The issue is exploitable over the network without authentication or user interaction, according to the published CVSS 4.0 vector.

Critical Impact

Unauthenticated attackers can inject scripts into HTML mail templates, enabling session theft, phishing, and content manipulation across Joomla extensions that consume the shared template renderer.

Affected Products

  • Joomla! Core 4.0.0 through 5.4.8
  • Joomla! Core 6.0.0 through 6.1.3
  • Third-party Joomla extensions that render HTML mail templates through the affected core component

Discovery Timeline

  • 2026-09-29 - CVE-2026-90918 published to the National Vulnerability Database
  • 2026-09-29 - Last updated in NVD database

Technical Details for CVE-2026-90918

Vulnerability Analysis

The vulnerability resides in Joomla's HTML mail template feature. Joomla exposes a mail template system that allows core and third-party extensions to compose outgoing messages using shared templates and variable substitution. The affected code path does not apply output escaping when values are inserted into the HTML mail body. Attacker-controlled input that flows through variables consumed by the template renderer is written into HTML without sanitization. Multiple extensions inherit this behavior because they use the shared mail template API, expanding the reachable attack surface across a typical Joomla site.

Root Cause

The root cause is missing contextual output encoding when template variables are rendered into HTML mail content [CWE-79]. Because escaping is implemented at the wrong layer or not implemented at all, any caller that passes untrusted data into a mail template variable produces HTML that browsers and mail clients treat as executable markup.

Attack Vector

An unauthenticated remote attacker supplies input to any Joomla-facing feature that eventually flows into a mail template variable, such as registration forms, contact forms, or extension-specific workflows. When the template renders, the injected <script> or event-handler payload is embedded verbatim in the outgoing HTML mail. When a recipient views the message in a client that executes HTML and JavaScript, the payload runs in the recipient's context.

No verified public proof-of-concept code is available for this issue. See the Joomla Security Advisory - XSS for vendor technical details.

Detection Methods for CVE-2026-90918

Indicators of Compromise

  • Outbound Joomla-generated HTML mail containing <script>, onerror=, onload=, or javascript: sequences inside template-rendered fields.
  • Unexpected inbound form submissions or registration payloads containing HTML or JavaScript in fields that populate mail templates.
  • Web server logs showing repeated POST requests to registration, contact, or extension endpoints with encoded HTML payloads.

Detection Strategies

  • Inspect stored Joomla mail template records and audit logs for markup in fields intended for plain text.
  • Deploy web application firewall rules that flag HTML tags and JavaScript keywords in Joomla form parameters.
  • Perform egress inspection on SMTP traffic from Joomla hosts to detect script content in outbound HTML bodies.

Monitoring Recommendations

  • Alert on modifications to core Joomla mail template records and configuration tables.
  • Monitor Joomla version banners and confirm all sites are running a patched release.
  • Correlate spikes in registration or contact form submissions with anomalous outbound mail volume.

How to Mitigate CVE-2026-90918

Immediate Actions Required

  • Upgrade Joomla! Core to a version above 5.4.8 in the 4.x/5.x branch or above 6.1.3 in the 6.x branch as published by the Joomla project.
  • Audit installed extensions that consume the mail template API and confirm they receive sanitized data.
  • Review recent outbound mail for injected script content and rotate any credentials that may have been captured through phishing.

Patch Information

Joomla has published a security advisory for this issue. Refer to the Joomla Security Advisory - XSS for the fixed versions and upgrade guidance. General project information is available at the Joomla Official Website.

Workarounds

  • Restrict or disable HTML mail templates for extensions that accept untrusted input until the upgrade is applied.
  • Enforce server-side input validation that strips HTML tags from form fields feeding mail templates.
  • Configure downstream mail gateways to sanitize or flag HTML mail originating from Joomla hosts.
bash
# Verify Joomla core version from the CLI
php -r "echo (new SimpleXMLElement(file_get_contents('administrator/manifests/files/joomla.xml')))->version;"

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

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.