CVE-2026-129320 PUBLISHED

Apache Shiro: Principal tags in Jakarta Pages and Jakarta Faces do not escape output, allowing cross-site scripting

Assigner: apache
Reserved: 13.11.2026 Published: 16.11.2026 Updated: 16.11.2026

The shiro:principal tags in shiro-web (Jakarta Pages) and shiro-jakarta-ee (Jakarta Faces) did not escape their output, which could allow cross-site scripting when a principal value is not fully trusted. This issue affects all Apache Shiro versions through 3.0.1, only when the principal tag is used.

Mitigation: Upgrade to version 3.0.2 or later, which escapes the output. Alternatively, validate principal values on input.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/S:N/AU:N/V:D/RE:L/U:Green
CVSS Score: 2.1

Product Status

Vendor Apache Software Foundation
Product Apache Shiro
Versions Default: unaffected
  • affected from 0 to 3.0.2 (excl.)
Vendor Apache Software Foundation
Product Apache Shiro
Versions Default: unaffected
  • affected from 2.0.0-alpha-0 to 3.0.2 (excl.)

Credits

  • The ASF LLM-based security scan finder
  • Lenny Primak <lenny@flowlogix.com> remediation developer

References

Problem Types

  • CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') CWE