LOW 2.1

CVE-2026-129320

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

Preliminary: affected artifacts were declared by the CNA in the CVE record and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

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.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
org.apache.shiro » shiro-jakarta-eepreliminary
>= 2.0.0-alpha-0, < 3.0.2
3.0.2
org.apache.shiro » shiro-webpreliminary
< 3.0.2
3.0.2

Blast radius

2affected artifacts
69affected versions
2,248dependent artifacts (est.)
67,152dependent versions

78% of the dependent artifacts (1,763) still pull an affected version in their latest release.

DepthDependent versions
Direct
18,386
2 hops
30,373
3 hops
9,773
4 hops
4,237
5 hops
3,090
6 hops
1,293

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.