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

State
Published
Severity
2.1 Low
Published
Nov 16, 2026
Updated
Nov 16, 2026
Reserved
Nov 13, 2026

Read the record on cve.org

Description

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.

ProductVersions
Apache Shiro Apache Software Foundationbefore 3.0.2 Affected
Apache Shiro Apache Software Foundation2.0.0-alpha-0 to before 3.0.2 Affected

Weaknesses

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

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.