CVE-2026-133639: Apache Struts Javatemplates plugin writes extra tag attributes into the page without escaping

ByLinuxtastic

December 1, 2026 #Apache Struts, #CVE

Apache Struts renders its UI tags, the <s:textfield> family, through templates, and by default those templates are FreeMarker. The Javatemplates plugin is the faster alternative that renders the same tags in Java code, and it had a gap: an “additional attribute” on a tag, one that is not in the tag’s declared attribute set and is written through to the HTML element as given, was placed into the page without HTML escaping. The record says that “where such an attribute carries a value derived from the request, a crafted request could inject markup or script into the rendered page”, and that applications using the default FreeMarker templates are not affected. Apache rates it Low; CISA’s ADP scores it 6.1 as reflected cross-site scripting. Upgrade to Struts 7.5.0 or 6.13.0; until then, keep struts.ui.templateSuffix at its default ftl, or stop passing request-derived values through additional tag attributes.

CVE-2026-133639 at a glance.

ComponentApache Struts, the Javatemplates plugin (struts2-javatemplates-plugin): rendering of additional, pass-through attributes on UI tags. Applications on the default FreeMarker templates (struts.ui.templateSuffix=ftl) are not in the described path
Affected versionsStruts 2.2.1 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.0.x and 2.1.x 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-083); 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, the standard reflected-XSS vector), CWE-79. The two do not agree, and the bulletin’s Low reflects the preconditions: the plugin, a pass-through attribute, and request data in it. 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 switched to the Javatemplates plugin for rendering speed and whose JSP or FreeMarker pages pass a request value through an attribute the tag does not define, such as a data-* or title attribute set from a parameter. The outcome is reflected cross-site scripting against a user who follows a crafted link: script in the application’s origin with the victim’s session. Applications on the default templates, or whose extra attributes are literals, are outside the description. The bulletin notes a behaviour change: after the fix those attributes are escaped as FreeMarker already escaped them, so an application that relied on raw markup in one will see it rendered as text
PublishedApache bulletin S2-083 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

A Struts UI tag has a fixed set of attributes it understands, name, value, cssClass and so on, and any other attribute written on the tag is passed through to the rendered element unchanged, which is how applications add data- attributes, ARIA attributes and the like. The FreeMarker templates write those pass-through attributes with HTML escaping, the same as every other value they emit. The Javatemplates plugin, which reimplements the templates as Java for applications that want to avoid FreeMarker’s cost, wrote them raw. The two renderers were meant to be interchangeable, and in this one respect they were not.

That is CWE-79, cross-site scripting, in its reflected form: the attacker crafts a URL whose parameter ends up in a pass-through attribute, the victim opens it, and the attribute value closes the quote and the tag and adds whatever it likes. The CISA ADP’s 6.1 is the usual score for that shape, with scope changed because the script runs in the victim’s browser rather than on the server. Apache’s Low rating weighs the preconditions: an application has to have chosen the plugin, used a pass-through attribute, and put request data in it, and the first of those is uncommon.

The fix in 6.13.0 and 7.5.0 escapes additional attributes in the Javatemplates renderer as the FreeMarker templates do, and the bulletin is explicit that this is a backward-compatibility change for any application that relied on the raw behaviour. The bulletin credits Claude and Ada Logics, and names the affected artefact as struts2-javatemplates-plugin. It is one of nine bulletins Apache announced together on 30 November 2026, S2-080 to S2-088; its sibling S2-087 on the doubleselect tag 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

Three questions, in order: which Struts the application loads; does it use the Javatemplates plugin, which shows as a jar on the classpath and usually a struts.ui.templateSuffix setting of java; and do its pages pass request data through attributes the tags do not define. The third is a code search, and it is the one that decides whether the application was ever exposed.

# 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. is the Javatemplates plugin in use? (the jar, and the template suffix set to "java")
find / -name 'struts2-javatemplates-plugin-*.jar' 2>/dev/null | grep -vE '/\.m2/'
grep -rnE 'struts\.ui\.templateSuffix' --include='struts.xml' --include='struts.properties' --include='*.xml' /path/to/src /opt /srv 2>/dev/null

# 3. pass-through attributes on UI tags that carry request data (JSP shown; the same shape in .ftl pages)
grep -rnE '<s:(textfield|password|textarea|select|checkbox|radio|hidden|file|submit|a|form|label)[^>]*\$\{' --include='*.jsp' --include='*.ftl' /path/to/src 2>/dev/null | grep -vE '(name|value|id|cssClass|label|key)="\$\{' | head
grep -rnE '<s:[a-z]+[^>]*(data-[a-z-]+|title|placeholder|aria-[a-z]+)="[^"]*(\$\{|%\{|<s:property)' --include='*.jsp' --include='*.ftl' /path/to/src 2>/dev/null | head

An application on 7.5.0, 7.5.1 or 6.13.0, or one with no Javatemplates jar in step 2, is done. Below the fix with the plugin present, an empty step 3 means the pass-through attributes are literals and the renderer’s gap was never reachable; hits in step 3 are the exposed lines, and each one has been emitting the request value raw for as long as the plugin has been in use. The application’s access logs will show the crafted parameters if anyone has tried.

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. Then check the pages that step 3 found, since the fix escapes those attributes and any that relied on raw markup will now render it as text.

# 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 workarounds, for an application that cannot rebuild today, are to render with the default FreeMarker templates, to remove the plugin, or to stop putting request data in additional attributes. The first is a one-line configuration change and a restart:

<!-- struts.xml: back to the FreeMarker templates, which escape pass-through attributes -->
<constant name="struts.ui.templateSuffix" value="ftl" />
<!-- or remove the plugin from the build until the upgrade -->
<!--   <artifactId>struts2-javatemplates-plugin</artifactId>   -->

What not to do: do not set struts.ui.templateSuffix back to java after the upgrade on the assumption that the plugin is now safe but otherwise unchanged, without testing the pages step 3 found, because the escaping change is the fix and it will alter their output; and do not treat a Content Security Policy as the mitigation here, since an injected attribute value can carry an event handler or a nonce-less inline script, and the sibling bulletin S2-087 shows the framework itself emitting inline script that a nonce policy must allow.

Sources

  • CVE-2026-133639 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-083 — Low rating, the problem and solution text, the backward-compatibility note, the workarounds, the credit to Claude and Ada Logics; 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-javatemplates-plugin; 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.