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-97165 Overview
CVE-2026-97165 is a reflected cross-site scripting (XSS) and open redirect vulnerability in the Event Gallery extension for Joomla, developed by svenbluege.de. Versions prior to 6.5.0 accept a return parameter that is base64-decoded and written to the Back link without validation. An attacker can craft a URL that injects script content or redirects users to attacker-controlled destinations. Exploitation requires user interaction, typically clicking a crafted link.
Critical Impact
Attackers can execute arbitrary scripts in a victim's browser session or redirect users to phishing or malware distribution sites hosted outside the trusted Joomla domain.
Affected Products
- Joomla Event Gallery extension by svenbluege.de
- All versions prior to 6.5.0
- Joomla sites with the extension installed and reachable over the network
Discovery Timeline
- 2026-09-27 - CVE-2026-97165 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-97165
Vulnerability Analysis
The Event Gallery extension processes a return query parameter intended to control post-action navigation. The extension base64-decodes the parameter value and inserts the decoded string directly into the href attribute of a Back link rendered in the response. No validation, sanitization, or output encoding is applied to the decoded content.
Because the sink is an HTML attribute, an attacker can supply a base64-encoded payload that breaks out of the attribute context and executes JavaScript, or that uses a javascript: URI scheme to trigger script execution when the user clicks the link. The same sink enables open redirect behavior when the decoded value is an absolute URL pointing to an external domain.
The weakness is classified under [CWE-79] Improper Neutralization of Input During Web Page Generation. Exploitation yields session theft, credential harvesting through overlay phishing, or redirection to malicious domains for drive-by compromise.
Root Cause
The root cause is missing input validation and output encoding on the return parameter. Base64 decoding does not sanitize content; it only changes the encoding. The extension treats the decoded string as a trusted URL and writes it into HTML without context-aware escaping.
Attack Vector
The attack is network-reachable and requires user interaction. An attacker crafts a URL containing a base64-encoded malicious payload in the return parameter and delivers it through phishing, social media, or compromised referrers. When the victim visits the link and interacts with the rendered Back link, the injected script executes in the context of the Joomla site or the browser follows the redirect to an attacker-controlled host. No authentication or elevated privileges are required.
Technical details are available in the Sven Bluege Security Blog.
Detection Methods for CVE-2026-97165
Indicators of Compromise
- Web server access logs containing requests with a return query parameter whose value is a long base64 string
- Decoded return values that resolve to javascript:, data:, or external URLs not matching the site domain
- Referrer logs showing user traffic entering Event Gallery URLs from untrusted external domains
Detection Strategies
- Inspect HTTP request logs for Event Gallery endpoints and base64-decode return parameter values to flag payloads containing <script, onerror, javascript:, or external hostnames
- Deploy web application firewall (WAF) rules that reject or sanitize return parameter values exceeding expected length or containing non-URL characters after decoding
- Monitor Content Security Policy (CSP) violation reports for inline script executions originating from Event Gallery pages
Monitoring Recommendations
- Alert on outbound redirects from Joomla sessions to domains outside an allowlist
- Track unusual spikes in traffic to Event Gallery URLs carrying query parameters
- Correlate user-agent and referrer anomalies with sessions that hit affected endpoints
How to Mitigate CVE-2026-97165
Immediate Actions Required
- Upgrade the Event Gallery extension to version 6.5.0 or later on all Joomla instances
- Audit existing site logs for prior exploitation attempts targeting the return parameter
- Invalidate active administrator sessions and rotate credentials if indicators of exploitation are found
Patch Information
The vendor fixed the issue in Event Gallery version 6.5.0. Site administrators should update through the Joomla extension manager or by downloading the current release from the vendor. Review the Sven Bluege Security Blog for release notes and advisory details.
Workarounds
- Deploy a WAF rule that strips or blocks requests containing a return parameter until the extension is updated
- Enforce a strict Content Security Policy that disallows inline script execution and restricts navigation to trusted origins
- Temporarily disable the Event Gallery extension on externally reachable sites if patching is delayed
# Example WAF rule concept - block requests with a return parameter on Event Gallery URLs
# ModSecurity-style pseudo-rule
SecRule REQUEST_URI "@contains /index.php" \
"chain,phase:2,deny,status:403,id:1009716,msg:'CVE-2026-97165 Event Gallery return param blocked'"
SecRule ARGS:return "@rx .+" "t:none"
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

