---
id: "CVE-2026-129320"
page: "https://infrastack.ai/live/CVE-2026-129320"
kind: "vulnerability"
aliases: ["CVE-2026-129320"]
title: "Apache Shiro: principal tags let attackers inject scripts into pages"
severity: "low"
cvss: 2.1
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["apache-shiro", "jakarta-ee", "java", "package"]
not_affected_if: ["principal-tag-unused"]
published_at: "2026-11-16T14:17:06+00:00"
first_seen_at: "2026-11-16T14:36:59+00:00"
updated_at: "2026-11-16T14:37:30+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129320", "first_seen_at": "2026-11-16T14:36:59+00:00"}]
exploit_sources: []
---

# Apache Shiro: principal tags let attackers inject scripts into pages

Link for people: https://infrastack.ai/live/CVE-2026-129320 (this .md is for agents)

The shiro:principal tags in shiro-web and shiro-jakarta-ee did not escape their output, so untrusted principal values can inject script into rendered pages. An attacker who controls a principal value can run script in a victim's browser.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check whether the application depends on `shiro-web` or `shiro-jakarta-ee` in its build file.
- Search JSP and Facelets views for `<shiro:principal` tags.

## Fix

- Apache Shiro: upgrade to `3.0.2` or later, which escapes the output.
- Alternatively, validate principal values on input (no version or setting stated for this option).

## Timeline

- 2026-11-16T14:36:59+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129320

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
