Apache Shiro’s Jakarta EE module used the HTTP Referer header in certain cases to issue redirect after a user loginGHSA-7pq2-fhx9-x464
MEDIUMGHSA-7pq2-fhx9-x464 is a medium-severity (CVSS 5.4) Open Redirect vulnerability in org.apache.shiro:shiro-jakarta-ee. A fix is available for org.apache.shiro:shiro-jakarta-ee — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-7pq2-fhx9-x464.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.apache.shiro:shiro-jakarta-ee☕org.apache.shiro:shiro-jakarta-eeReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Apache Shiro’s Jakarta EE module used the HTTP Referer header in certain cases to issue redirect after a user login. In affected versions, insufficient validation of this client-controlled value could allow an attacker to influence the redirect target in applications using the Jakarta EE module. This issue affects Apache Shiro from 2.0-alpha to 2.2.0, and 3.0.0-alpha-1, only when using shiro-jakarta-ee integration module.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.shiro:shiro-jakarta-ee | ≥ 2.0-alpha&&< 2.2.1 | 2.2.1org.apache.shiro:shiro-jakarta-ee:2.2.1 |
| ☕Maven | org.apache.shiro:shiro-jakarta-ee | ≥ 3.0.0-alpha-0&&< 3.0.0-alpha-2 | 3.0.0-alpha-2org.apache.shiro:shiro-jakarta-ee:3.0.0-alpha-2 |
Affected Products
shiroapacheDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.shiro:shiro-jakarta-ee, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.shiro:shiro-jakarta-ee to 2.2.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-7pq2-fhx9-x464 is resolved across your whole dependency graph.
Workarounds
Stop reflecting attacker-controlled destinations: resolve every redirect target against an allowlist of paths or hosts you own, prefer a server-side key over a full URL in the request, and reject absolute URLs entirely where the flow only ever needs a relative one.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Red Hat ships Apache Shiro's Jakarta EE integration module (shiro-jakarta-ee) as a bundled dependency in EAP XP. A flaw was found where insufficient validation of the HTTP Referer header could allow an attacker to influence the redirect target after user login, potentially redirecting users to malicious sites. This…
Ensure that applications using Apache Shiro's Jakarta EE module do not rely solely on the HTTP Referer header for post-login redirect decisions. Where possible, configure explicit redirect URLs in the application rather than accepting client-supplied values.Source: Red Hat security advisory for GHSA-7pq2-fhx9-x464 (CC BY 4.0)
Frequently Asked Questions
Is GHSA-7pq2-fhx9-x464 in your dependencies?
Find it across Maven, including transitive dependencies.