# CVE-2026-58301: Apache Shiro: Server-side POST request may be steered to an alternate host

> A low-privileged user can force the server to connect to an attacker-controlled URL via the Jakarta EE integration module, enabling data exfiltration or modification.

- **Severity:** Medium 5.9 (`CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/S:P/AU:Y/R:U/V:D/RE:L/U:Amber`)
- **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
- **Fix available:** Yes
- **Published:** 31 Aug 2026
- **Updated:** 31 Aug 2026
- **Also known as:** CLEANSTART-2026-SB52604, DEBIAN-CVE-2026-58301, GHSA-r2fv-9rvj-c54c, UBUNTU-CVE-2026-58301

## What is CVE-2026-58301?

CVE-2026-58301 is a medium-severity server-side request forgery vulnerability in Apache Shiro, published on 31 Aug 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

When Apache Shiro is used with the Jakarta EE integration module, a low-privileged user can craft an HTTP request that causes the server to initiate a connection to an attacker-controlled URL and transmit attacker-controlled data. This vulnerability affects Apache Shiro versions 2.x through 3.0.0 only in deployments that use the Jakarta EE integration module.

Mitigation: Upgrade to version 3.0.1 or later, which fixes the issue. +
Alternatively, you can set the `org.apache.shiro.form-resubmit-host` (String) and `org.apache.shiro.form-resubmit-port` (Integer) system properties to restrict the host and port that Shiro will connect to when resubmitting a form.

Weakness: CWE-918 (Server-Side Request Forgery)

## Which versions are affected by CVE-2026-58301?

It affects 1 product.


Products: Apache Shiro.

## How do I fix CVE-2026-58301?

Upgrade to a fixed version.

## Is CVE-2026-58301 being exploited?

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

## Other vulnerabilities in Apache Shiro

- [CVE-2023-34478](https://insights.sbomify.com/CVE-2023-34478/): Path Traversal in Apache Shiro (critical 9.8)
- [CVE-2022-40664](https://insights.sbomify.com/CVE-2022-40664/): Authentication Bypass Vulnerability in Shiro when forwarding or including via RequestDispatcher (critical 9.8)
- [CVE-2022-32532](https://insights.sbomify.com/CVE-2022-32532/): Authentication Bypass Vulnerability (critical 9.8)
- [CVE-2021-41303](https://insights.sbomify.com/CVE-2021-41303/): Apache Shiro vulnerable to a specially crafted HTTP request causing an authentication bypass (critical 9.8)
- [CVE-2020-17523](https://insights.sbomify.com/CVE-2020-17523/): Authentication bypass in Apache Shiro (critical 9.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-58301 and fix it if it is affected.

What it is: CVE-2026-58301 is a medium-severity server-side request forgery vulnerability in Apache Shiro, published on 31 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-58301 in the wild and no public exploit code.

Affected product: Apache Shiro. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-58301/ (Markdown: https://insights.sbomify.com/CVE-2026-58301/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-58301
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-58301
- OSV: https://osv.dev/vulnerability/CVE-2026-58301

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-58301/
Summaries are generated and may contain mistakes; the official description above is the record.
