Verifying a CVE-2026-133639 Fix in Apache Struts
Changing a Struts version property is the beginning of remediation for CVE-2026-133639. The application must run with the fixed Javatemplates plugin, and its UI paths must render safely. Verification should connect the build record, deployed artifact, runtime output, and regression tests.
Apache lists 6.13.0 and 7.5.0 as fixes for the Javatemplates HTML-escaping defect. The issue affects additional attributes, meaning attributes outside a UI tag's own set, and can produce XSS when request data reaches those values. Applications using the default FreeMarker templates are outside the reported defect. Apache rates the flaw low, and the reviewed official records do not provide a CVSS score or public exploit code.
Verify the dependency chain
Inspect the build output for the Struts framework and Javatemplates plugin. Compare the resolved versions with the versions embedded in the deployed archive. A dependency tree can reveal a direct override, a transitive dependency, or an application-local jar that differs from the top-level declaration.
Check container images and application-server libraries as well. A rebuilt application can load an older plugin from a shared location. Use the final runtime artifact as the source of truth for production. Record file names, versions, hashes, or other non-secret evidence that supports the conclusion.
Exercise the affected renderer
Identify a page that uses Javatemplates and passes an extra attribute to a UI tag. Use a controlled value that cannot affect real users. The test should inspect the HTML response and confirm that the attribute value is encoded for its context.
Test fixed server-side attributes in addition to request-derived ones. The fix should preserve normal tag behavior while removing raw write-through of unsafe content. Include a page with no additional attributes so the verification also covers ordinary rendering.
If the application uses more than one view technology, confirm which renderer handles each page. A dependency inventory may show Javatemplates while specific views use FreeMarker. The default-template exception matters for scope, but the running application still needs an accurate inventory entry.
Add regression coverage
The regression test should fail if an undeclared attribute is emitted without escaping. Keep the test free of production data. A safe assertion can compare the rendered attribute output with the expected encoded form. If the application intentionally rejects additional attributes, assert the rejection response.
Include a test for request values that contain quotes and angle brackets. These characters expose context-boundary mistakes without requiring a live malicious payload. Add stored-content cases when users can save values that an administrator later renders.
Review application helpers for unsafe pass-through after the framework test passes. The Javatemplates fix addresses its own serialization path. A custom helper that concatenates HTML strings can still create a separate vulnerability.
Confirm the deployed scope
Apache's affected ranges are 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. The supported fixes are 6.13.0 and 7.5.0. End-of-life applications require migration. A version that appears fixed in source but runs from an old image is not complete.
A ZoomEye Search for http.body="/struts/" returned 684,019 page-content matches. The separate CVE Filter returned zero. These observations support external discovery but do not verify the plugin version, code path, or fix state inside an application.
Close the task with evidence
Record the application, environment, deployed plugin version, affected test pages, response result, and rollback image. Link the evidence to the change record and retain it for the next inventory cycle. A successful build and an upgrade log are useful, but they do not replace a rendered-output check.
References
- CVE-2026-133639: https://www.cve.org/CVERecord?id=CVE-2026-133639
- Apache Struts announcement: https://struts.apache.org/announce-2026.html
- Apache S2-083: https://cwiki.apache.org/confluence/display/WW/S2-083
- oss-security advisory: https://seclists.org/oss-sec/2026/q4/930
Top comments (0)