---
id: "CVE-2026-88019"
page: "https://infrastack.ai/live/CVE-2026-88019"
kind: "vulnerability"
aliases: ["CVE-2026-88019"]
title: "Apache Shiro: form resubmission after login can leak cookies and form data"
severity: "medium"
cvss: 6.0
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["apache-shiro", "jakarta-ee", "java", "package", "self-hosted"]
not_affected_if: ["form-saving-disabled", "other-shiro-integration", "shiro-2.x-before-alpha"]
published_at: "2026-11-16T14:17:09+00:00"
first_seen_at: "2026-11-16T14:37:00+00:00"
updated_at: "2026-11-16T14:37:21+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-88019", "first_seen_at": "2026-11-16T14:37:00+00:00"}]
exploit_sources: []
---

# Apache Shiro: form resubmission after login can leak cookies and form data

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

When the Jakarta EE integration module is used with automatic form saving enabled, Shiro resubmits a saved form after login and can drop cookie security attributes such as Secure and SameSite. The resubmitted form data and cookies can also be sent to an untrusted host.

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

## How to check

- Check whether the application depends on `shiro-jakarta-ee` and its Shiro version is between `2.0.0-alpha` and `3.0.1`.
- Check that form saving is still on (the default) and that `org.apache.shiro.form-resubmit-host` and `org.apache.shiro.form-resubmit-port` are not set.

## Fix

- Apache Shiro: upgrade to `3.0.2` or later, which no longer replays the form over the network.
- Alternatively, 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 Shiro connects to when resubmitting a form.

## Timeline

- 2026-11-16T14:37:00+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-88019

## From the sources

When Apache Shiro is used with the Jakarta EE integration module, the automatic form saving feature weakens the security of a form that is resubmitted after login.
Cookies set by the application during the resubmission could lose their security attributes, such as `Secure` and `SameSite`.
In addition, the resubmitted form data and cookies could be sent to an untrusted host.
This issue affects Apache Shiro from 2.0.0-alpha through 3.0.1, only when using `shiro-jakarta-ee` integration module with form saving enabled (the default).

Mitigation: Upgrade to version 3.0.2 or later, which no longer replays the form over the network, and avoids this class of issues entirely.
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.

---

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