CVE-2026-133643: Apache Struts doubleselect tag writes a value into the page script without script escaping

ByLinuxtastic

December 1, 2026 #Apache Struts, #CVE

The Struts <s:doubleselect> tag renders two linked drop-down lists, where the choice in the first decides the options in the second, and it does that by emitting a block of JavaScript holding the option sets. With the doubleMultiple attribute set, the second list allows several selections, and the value the tag preselects there, “for example a value submitted with the request and shown again on the form”, was written into that script block without the escaping a script context requires. The record says “a crafted value can execute script in the page, and a Content Security Policy that relies on nonces does not prevent it”, because the script is inside a block the framework itself emits, which the policy has to allow. Apache rates it Low; CISA’s ADP scores it 6.1. Upgrade to Struts 7.5.0 or 6.13.0; until then remove the doubleMultiple attribute from the tag entirely, since setting it to false is not enough.

CVE-2026-133643 at a glance.

ComponentApache Struts, struts2-core: the doubleselect UI tag’s generated JavaScript when doubleMultiple is set. The tag without that attribute, and the html5 theme, which does not render the tag, are not in the described path
Affected versionsStruts 2.1.8 through 2.3.37, 2.5.0 through 2.5.33, 6.0.0 through 6.12.0 and 7.0.0 through 7.4.0, per the Apache CNA record; the 2.3 and 2.5 lines are end of life and get no fix. 2.1.6 and earlier are not affected
Fixed inStruts 7.5.0 and 6.13.0, both GA on 20 November 2026 and announced as security releases on 30 November 2026 (bulletin S2-087); 7.5.1 of 26 November is the current 7.x release and carries the fix. No distribution packages Struts 2
SeverityApache: Low (“Maximum security rating” on the bulletin); CISA ADP CVSS 3.1 6.1 Medium (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N), CWE-79. The two do not agree; the bulletin’s Low reflects that only a tag with doubleMultiple reaches the path. NVD Awaiting Analysis with the ADP score only; no distribution rates it
Exploited in the wildNot on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.30). EPSS: no score yet on 1 December 2026
Who is exposedStruts applications that use <s:doubleselect> with doubleMultiple and redisplay a submitted value in the second list, the ordinary form-validation round trip. The outcome is reflected cross-site scripting against a user who follows a crafted link or submits a crafted form, with the detail that a nonce-based CSP does not help, since the framework’s own script block carries the nonce. The bulletin records a side effect of the fix: preselecting several values in the second list, which did not work before, now does
PublishedApache bulletin S2-087 last updated 20 November 2026, announcement and CVE record 30 November 2026; this page built 1 December 2026, last updated 1 December 2026

What it is

HTML escaping and JavaScript escaping are different things. A value written into an element’s text or attribute needs &, < and quotes neutralised; a value written into a string literal inside a <script> block needs the quote that opened the literal, the backslash and the sequence that closes the script element neutralised, and HTML escaping does none of that. The doubleselect tag builds a script block that maps each option in the first list to the options of the second and, when doubleMultiple is set, records which second-list values are selected. The selected value went into that block with the wrong kind of escaping, so a value containing a quote and a semicolon ends the literal and continues as code.

That is CWE-79 in a script context, and it is the reason the record singles out Content Security Policy. A nonce-based policy allows exactly the inline scripts that carry the server’s nonce, and the framework emits this block with the nonce because it is the framework’s script; the attacker’s code is inside it, so the policy allows that too. A hash-based or strict-dynamic policy fares no better for the same reason. The CISA ADP’s 6.1 is the standard reflected-XSS score; Apache’s Low weighs how few applications use the tag with the attribute.

The fix in 6.13.0 and 7.5.0 escapes the value for the script context and, in passing, makes multiple preselection in the second list work, which the bulletin notes as the one behaviour change. The bulletin credits Aaron Elijah Mars (Aeon) and Yu Deshui. It is one of nine bulletins Apache announced together on 30 November 2026, S2-080 to S2-088; its sibling S2-083 on the Javatemplates plugin is linked below, and S2-081, the Bean Validation expression evaluation at 8.8, was written up on this site on 30 November.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. Struts 2 is a Maven dependency and no distribution packages it, so the row that matters is the last one.

DistributionStatusFixed package
AlpineNot consulted for this page; Alpine does not package Struts—
DebianNOT-FOR-US: “Apache software not packaged in Debian”—
UbuntuTracker unreachable on 1 December 2026 (server error on two attempts); Ubuntu does not package Struts 2—
RHEL, Rocky, Alma, CentOS StreamNo page (client error); Red Hat does not ship Struts 2—
openSUSE/SLENot consulted for this page; SUSE does not ship Struts 2—
Maven Central (org.apache.struts), application bundles, containers with a vendored warThe upstream release applies; every application on an affected line needs a rebuild6.13.0 (6.x line) or 7.5.0 (7.x line; 7.5.1 is current)

How to check

Two questions after the version: does the application use the doubleselect tag at all, and does any use of it set doubleMultiple. The bulletin is specific that the attribute present is the condition, whatever its value, so the search is for the attribute’s name.

# 1. the Struts jars an application actually loads (6.13.0 / 7.5.0 and later are fixed; 2.x lines are end of life)
for p in $(pgrep -x java); do tr '\0' '\n' < /proc/$p/cmdline | grep -oE '[^:]*struts2?-[a-z-]+-[0-9][^:]*\.jar' | sed "s/^/pid $p: /"; done
find / -name 'struts2-core-*.jar' 2>/dev/null | grep -vE '/\.m2/' | sort -u
for w in /opt/*/*.war /opt/*/webapps/*.war /var/lib/tomcat*/webapps/*.war; do unzip -l "$w" 2>/dev/null | grep -oE 'struts2-[a-z-]+-[0-9][^ ]*\.jar' | sed "s|^|$w: |"; done 2>/dev/null

# 2. the doubleselect tag, and any use with doubleMultiple (present at all is the condition; "false" does not help)
grep -rnE '<s:doubleselect' --include='*.jsp' --include='*.ftl' --include='*.vm' /path/to/src 2>/dev/null | head
grep -rnE '<s:doubleselect[^>]*doubleMultiple' --include='*.jsp' --include='*.ftl' --include='*.vm' /path/to/src 2>/dev/null

# 3. which theme renders it (the html5 theme does not render the tag)
grep -rnE 'struts\.ui\.theme' --include='struts.xml' --include='struts.properties' /path/to/src 2>/dev/null

An application on 7.5.0, 7.5.1 or 6.13.0 is done, as is one with no doubleselect tag. Below the fix, a tag without doubleMultiple is outside the description, and so is an application on the html5 theme. A hit in the second search of step 2 is the exposed shape: that form has been writing its preselected value into script unescaped, and the application’s access logs will show a quote-and-semicolon value in that field if anyone has tried it.

How to fix it

Bump the dependency to 7.5.1 (or 6.13.0 on the 6.x line), rebuild the war, redeploy and restart the servlet container. The fixed tag also preselects several values correctly, which a form that worked around the old behaviour may notice.

# Maven: in the pom, then verify what resolved
#   <struts2.version>7.5.1</struts2.version>      (or 6.13.0 on the 6.x line)
mvn -q dependency:tree -Dincludes=org.apache.struts | grep struts
# Gradle
./gradlew dependencies --configuration runtimeClasspath | grep struts
# then rebuild the war, redeploy and restart the servlet container
systemctl restart tomcat && sleep 5 && for p in $(pgrep -x java); do tr '\0' '\n' < /proc/$p/cmdline | grep -oE 'struts2-core-(6\.13|7\.5)[^:]*\.jar'; done

The bulletin’s workaround is to remove the doubleMultiple attribute from the tag entirely, not to set it to false: with the attribute gone the second list renders as single-value and the preselected value is written as an escaped string. That is a template edit and a redeploy:

<%-- before: the attribute present, in any value, is the exposed shape --%>
<s:doubleselect name="region" list="regions" doubleName="city" doubleList="cities" doubleMultiple="true" />
<%-- after: attribute removed; the second list is single-select until the upgrade --%>
<s:doubleselect name="region" list="regions" doubleName="city" doubleList="cities" />

What not to do: do not rely on a Content Security Policy to contain this one, for the reason the record gives, and do not HTML-escape the value in the action on the way in as a fix, because HTML escaping leaves the quote and backslash that matter in a script context and the fix is in the tag’s own rendering. Removing the attribute, or the upgrade, are the two changes that address it.

Sources

  • CVE-2026-133643 at CVE.org — the Apache CNA record (30 November 2026): the description, the four affected ranges, CWE-79 and the 6.13.0 / 7.5.0 fix; the CISA ADP container with the 6.1 vector
  • Apache Struts bulletin S2-087 — Low rating, the problem and solution text, the note on nonce-based CSP, the workaround (remove the attribute; false is not enough), the credit to Aaron Elijah Mars and Yu Deshui; page last updated 20 November 2026
  • Apache Struts announcements 2026 — the 6.13.0 and 7.5.0 GA entries of 20 November 2026, the 30 November security announcements for S2-080 to S2-088 (each recommending 7.5.0 or 6.13.0), and the 7.5.1 entry of 26 November
  • Apache Struts downloads — 7.5.1 and 6.13.0 offered on 1 December 2026
  • NVD entry — Awaiting Analysis; published 30 November; the ADP’s CVSS 3.1 6.1 and CWE-79; affected artefact org.apache.struts:struts2-core; no NVD score
  • Distribution trackers: Debian (NOT-FOR-US) · Ubuntu (unreachable on 1 December) · Red Hat (no page; Struts 2 not shipped)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS: no score on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.