CVE-2026-133643

Cross-Site Scripting
Affects
Apache Struts
in
Apache Struts
No items found.
Versions
>=2.1.8 <=2.3.37, >=2.5.0 <=2.5.33, >=6.0.0 <=6.12.0, >=7.0.0 <=7.4.0

Patch Available.

Exclamation circle icon
Patch Available

This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.

Overview

Apache Struts is a popular open-source web application framework for developing Java EE web applications. Its doubleselect tag renders two linked select lists, where the options of the second list change with the choice made in the first, and the simple theme generates the JavaScript that fills and preselects the second list.

A cross-site scripting (XSS) vulnerability (CVE-2026-133643) has been identified in the Apache Struts doubleselect tag, which allows attackers to execute script in the victim's page when the tag is used with the doubleMultiple attribute and preselects a value they control. A Content Security Policy that relies on nonces does not prevent it.

Per OWASP: Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites. XSS attacks occur when an attacker uses a web application to send malicious code, generally in the form of a browser side script, to a different end user. Flaws that allow these attacks to succeed are quite widespread and occur anywhere a web application uses input from a user within the output it generates without validating or encoding it.

This issue affects multiple versions of Apache Struts.

Details

Module Info

Vulnerability Info

This Medium-severity vulnerability is found in the org.apache.struts:struts2-core package in multiple versions of Apache Struts.

DoubleListUIBean looks up the value bound to the second list (doubleValue, or else doubleName) on the value stack and stores the resulting object as the doubleNameValue template parameter. When this value is one submitted with the request and shown again on the form, its content is controlled by whoever built the request.

The simple theme's doubleselect.ftl template then writes that parameter into the inline script that preselects options in the second list. In the branch taken when doubleMultiple is set, the value is interpolated twice without quotes, the first time with no JavaScript escaping at all:

<#if parameters.doubleNameValue??>
    <#if parameters.doubleMultiple??>
        for (var j = 0; j < ${parameters.doubleNameValue}.length; j++) {
            if (${parameters.escapedId}Temp.options[i].value == ${parameters.doubleNameValue?js_string}[j]) {
                ${parameters.escapedId}Temp.options[i].selected = true;
                selected = true;
            }
        }

Because the value lands in the script as bare code rather than inside a string literal, it needs no quote characters to break out, and ?js_string, which only escapes characters that matter inside a string literal, does not neutralize it. A crafted value becomes part of the JavaScript expression and runs when the page loads. The script is part of the page Struts generates, so a Content Security Policy that relies on nonces does not block it. The branch is selected by doubleMultiple??, which only tests that the attribute is present, so doubleMultiple="false" also takes it. Applications that do not use the doubleselect tag, or use it without the doubleMultiple attribute, are not affected.

Mitigation

Only recent versions of Apache Struts are community-supported. Older lines are End-of-Life and will not receive any updates to address this issue.

Users of the affected components should apply one of the following mitigations:

  • Upgrade affected applications to a supported version of Apache Struts.
  • Leverage a commercial support partner like HeroDevs for post-EOL security support.

Credits

  • Aaron Elijah Mars (Aeon) (finder)
Vulnerability Details
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
Medium
ID
CVE-2026-133643
PROJECT Affected
Apache Struts
Versions Affected
>=2.1.8 <=2.3.37, >=2.5.0 <=2.5.33, >=6.0.0 <=6.12.0, >=7.0.0 <=7.4.0
NES Versions Affected
None
Published date
November 30, 2026
≈ Fix date
Category
Cross-Site Scripting
Vex Document
Download VEXHow do I use it?
Sign up for the latest vulnerability alerts fixed in
NES for Apache Struts
Rss feed icon
Subscribe via RSS
or

By submitting the form I acknowledge receipt of our Privacy Policy.

Thanks for signing up for our Newsletter! We look forward to connecting with you.
Oops! Something went wrong while submitting the form.