Description
Default configurations of Apache Shiro send sensitive cookies in HTTPS session without 'Secure' attribute.



This issue affects Apache Shiro from 1.0 to 2.1.0, and 3.0.0-alpha-1.

Users are recommended to upgrade to version 2.1.1, or 3.0.0-alpha-2 or later, which fixes the issue.

In the affected versions, Shiro-native session manager, as well as Remember-Me manager sends JSESSIONID and rememberMe cookies without 'secure' attribute by default.
Published: 2026-05-25
Score: 5.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises because Shiro's native session and Remember‑Me cookie managers, by default, do not set the Secure attribute. As a result, the JSESSIONID and rememberMe cookies are sent over HTTPS sessions without the Secure flag, potentially allowing them to traverse insecure network paths or be exposed in environments lacking strict transport controls. This omission, a CWE‑614 weakness, enables an attacker to intercept these cookies and impersonate authenticated users, which can lead to unauthorized access to the application.

Affected Systems

The issue affects Apache Shiro releases from 1.0 up through 2.1.0, as well as the 3.0.0‑alpha‑1 snapshot. The advisory recommends upgrading to 2.1.1 or to 3.0.0‑alpha‑2 and later, which include the Secure flag implementation for both session and remember‑me cookies. Until the upgrade or configuration change is applied, the affected versions remain vulnerable.

Risk and Exploitability

The CVSS base score of 5.9 denotes medium severity. No EPSS value is reported, so the exploitation likelihood remains uncertain. The vulnerability is not listed in CISA's KEV catalog. Based on the description, it is inferred that an attacker could capture traffic between a legitimate client and the Shiro‑protected service and replay a captured JSESSIONID or rememberMe cookie to hijack the session. Network security controls such as enforcing HTTPS for all traffic and deploying HTTP Strict Transport Security (HSTS) can mitigate the threat.

Generated by OpenCVE AI on May 25, 2026 at 22:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Shiro 2.1.1 or newer.
  • If an upgrade is delayed, configure the application’s Shiro session and Remember‑Me managers to explicitly set the Secure flag on cookies.
  • Enforce HTTPS for all traffic to the application and consider deploying HSTS.

Generated by OpenCVE AI on May 25, 2026 at 22:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 26 May 2026 13:45:00 +0000

Type Values Removed Values Added
References

Tue, 26 May 2026 13:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 25 May 2026 23:45:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache shiro
Vendors & Products Apache
Apache shiro

Mon, 25 May 2026 20:45:00 +0000

Type Values Removed Values Added
Description Default configurations of Apache Shiro send sensitive cookies in HTTPS session without 'Secure' attribute. This issue affects Apache Shiro from 1.0 to 2.1.0, and 3.0.0-alpha-1. Users are recommended to upgrade to version 2.1.1, or 3.0.0-alpha-2 or later, which fixes the issue. In the affected versions, Shiro-native session manager, as well as Remember-Me manager sends JSESSIONID and rememberMe cookies without 'secure' attribute by default.
Title Apache Shiro: Shiro's native session and rememberMe cookies do not have secure flag set by default
Weaknesses CWE-614
References
Metrics cvssV4_0

{'score': 5.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N/AU:Y/R:U/RE:L/U:Amber'}


cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-05-26T12:38:38.399Z

Reserved: 2026-05-03T19:25:59.025Z

Link: CVE-2026-43828

cve-icon Vulnrichment

Updated: 2026-05-25T21:26:13.232Z

cve-icon NVD

Status : Received

Published: 2026-05-25T21:16:34.840

Modified: 2026-05-25T22:16:33.767

Link: CVE-2026-43828

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-25T23:30:25Z

Weaknesses