{"id":"CVE-2026-129320","kind":"vulnerability","aliases":["CVE-2026-129320"],"related":[],"title":"Apache Shiro: principal tags let attackers inject scripts into pages","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.\nThis issue affects all Apache Shiro versions through 3.0.1, only when the principal tag is used.\n\nMitigation: Upgrade to version 3.0.2 or later, which escapes the output.\nAlternatively, validate principal values on input.","summary":"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.","severity":"low","cvss":2.1,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["apache-shiro","jakarta-ee","java","package"],"not_affected_if":["principal-tag-unused"],"how_to_check":"- Check whether the application depends on `shiro-web` or `shiro-jakarta-ee` in its build file.\n- Search JSP and Facelets views for `<shiro:principal` tags.","fix":"- Apache Shiro: upgrade to `3.0.2` or later, which escapes the output.\n- Alternatively, validate principal values on input (no version or setting stated for this option).","status":"open","published_at":"2026-11-16T14:17:06+00:00","first_seen_at":"2026-11-16T14:36:59+00:00","triaged_at":"2026-11-16T14:37:30+00:00","updated_at":"2026-11-16T14:37:30+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-11-16T14:37:30Z","model":"claude-haiku-5-5","output":{"fix":"- Apache Shiro: upgrade to `3.0.2` or later, which escapes the output.\n- Alternatively, validate principal values on input (no version or setting stated for this option).","reach":"internet","title":"Apache Shiro: principal tags let attackers inject scripts into pages","impact":"medium","summary":"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.","audience":"developers","category":"package","nicknames":[],"who_cares":["apache-shiro","java","jakarta-ee"],"confidence":0.7,"fix_status":"available","needs_auth":"unknown","worst_case":"Script runs in victims' browsers on affected pages.","analyst_note":"Ecosystem is Maven (Apache Shiro); product data not supplied, so package identity is inferred from the title.","how_to_check":"- Check whether the application depends on `shiro-web` or `shiro-jakarta-ee` in its build file.\n- Search JSP and Facelets views for `<shiro:principal` tags.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["principal-tag-unused"],"who_is_affected":"Applications that use the Shiro principal tag in Jakarta Pages (shiro-web) or Jakarta Faces (shiro-jakarta-ee) views, and only where principal values are not fully trusted. Applications that do not use the principal tag are not affected.","user_interaction":"unknown","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"low"},"cost_usd":0.000747,"input_tokens":4626,"output_tokens":569,"severity_before":"low"},"analyst_status":null,"analyst_note":null,"search":"'-129320':13A,16A '-2026':12A,15A '3.0.1':113C '3.0.2':125C 'affect':107C 'allow':92C 'altern':132C 'apach':1A,18B,109C 'apache-shiro':17B 'attack':6A,54B 'browser':67B 'control':56B 'could':91C 'cross':94C 'cross-sit':93C 'cve':11A,14A 'ee':22B,37B,82C 'escap':40B,87C,129C 'face':84C 'fulli':103C 'inject':7A,48B 'input':137C 'issu':106C 'jakarta':21B,36B,76C,81C,83C 'jakarta-e':20B 'java':23B 'later':127C 'let':5A 'mitig':121C 'output':42B,89C,131C 'packag':24B 'page':10A,52B,77C 'princip':3A,27B,45B,58B,70C,99C,117C,134C 'render':51B 'run':61B 'script':8A,49B,62B,96C 'shiro':2A,19B,26B,31B,35B,69C,74C,80C,110C 'shiro-jakarta-e':34B,79C 'shiro-web':30B,73C 'site':95C 'tag':4A,28B,71C,118C 'trust':104C 'untrust':44B 'upgrad':122C 'use':120C 'valid':133C 'valu':46B,59B,100C,135C 'version':111C,124C 'victim':65B 'web':32B,75C","nicknames":[],"mitigations":[],"who_affected":"Applications that use the Shiro principal tag in Jakarta Pages (shiro-web) or Jakarta Faces (shiro-jakarta-ee) views, and only where principal values are not fully trusted. Applications that do not use the principal tag are not affected.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["apacheshiro","jakartaee","java","low","package"],"campaign_type":null,"search_a":"'-129320':13A,16A '-2026':12A,15A 'apach':1A 'attack':6A 'cve':11A,14A 'inject':7A 'let':5A 'page':10A 'princip':3A 'script':8A 'shiro':2A 'tag':4A","search_b":"'apach':18B 'apache-shiro':17B 'attack':54B 'browser':67B 'control':56B 'ee':22B,37B 'escap':40B 'inject':48B 'jakarta':21B,36B 'jakarta-e':20B 'java':23B 'output':42B 'packag':24B 'page':52B 'princip':27B,45B,58B 'render':51B 'run':61B 'script':49B,62B 'shiro':19B,26B,31B,35B 'shiro-jakarta-e':34B 'shiro-web':30B 'tag':28B 'untrust':44B 'valu':46B,59B 'victim':65B 'web':32B","search_c":"'3.0.1':113C '3.0.2':125C 'affect':107C 'allow':92C 'altern':132C 'apach':109C 'could':91C 'cross':94C 'cross-sit':93C 'ee':82C 'escap':87C,129C 'face':84C 'fulli':103C 'input':137C 'issu':106C 'jakarta':76C,81C,83C 'later':127C 'mitig':121C 'output':89C,131C 'page':77C 'princip':70C,99C,117C,134C 'script':96C 'shiro':69C,74C,80C,110C 'shiro-jakarta-e':79C 'shiro-web':73C 'site':95C 'tag':71C,118C 'trust':104C 'upgrad':122C 'use':120C 'valid':133C 'valu':100C,135C 'version':111C,124C 'web':75C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T14:17:06+00:00","kev":null,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:N/AU:N/R:X/V:D/RE:L/U:Green","cvss_by":"security@apache.org","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-129320","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129320","severity":null,"published_at":"2026-11-16T14:17:06+00:00","modified_at":"2026-11-16T14:17:06+00:00","first_seen_at":"2026-11-16T14:36:59+00:00","fetched_at":"2026-11-16T14:36:59+00:00","note":null}],"documents":[],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}