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

Low 2.1 Published Updated

Untrusted principal values passed to Shiro's principal tag can inject scripts into pages; Java apps using Shiro principal tags should care.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Harmful if only installed
No
Needs a specific call
Yes
Fix
None listed

What is CVE-2026-129320?

CVE-2026-129320 is a low-severity cross-site scripting vulnerability in Apache Shiro, published on 16 Nov 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2026-129320?

2 open source packages ship an affected version, including org.apache.shiro:shiro-jakarta-ee and org.apache.shiro:shiro-web.

An affected version is only exploitable if your software uses the vulnerable function or option. Many projects that include it are not exposed.

PackageAffectedFixed in
org.apache.shiro:shiro-jakarta-ee Maven
pkg:maven/org.apache.shiro/shiro-jakarta-ee
From 2.0.0-alpha-03.0.2
org.apache.shiro:shiro-web Maven
pkg:maven/org.apache.shiro/shiro-web
All versions3.0.2

How do I fix CVE-2026-129320?

Upgrade org.apache.shiro:shiro-jakarta-ee to 3.0.2 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-129320 being exploited?

There is no known exploitation of CVE-2026-129320 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-129320, GHSA-969f-mppv-qv32, UBUNTU-CVE-2026-129320.

Is CVE-2026-129320 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free