CVE-2026-43828: Shiro web Apache Shiro Sends Sensitive Cookies Vulnerability

MODERATE
Advisory Identifier: GHSA-c6r4-qjmw-cvj2
CWE-614
Published
Advisory Summary

CVE-2026-43828 is a MODERATE apache shiro sends sensitive cookies vulnerability (CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute) affecting Shiro web libraries in the Maven ecosystem. The issue involves apache shiro sends sensitive cookies in https session without 'secure' attribute. Remediation is available by upgrading affected packages to version 3.0.0-alpha-2, 2.2.0.

CVE-2026-43828 at a Glance

CVE Identifier CVE-2026-43828
GHSA Identifier GHSA-c6r4-qjmw-cvj2
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute
Affected Product Shiro web
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2026-43828

To remediate this vulnerability, upgrade all affected Shiro web dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.shiro:shiro-web fixed: 3.0.0-alpha-2
<dependency>
    <groupId>org.apache.shiro</groupId>
    <artifactId>shiro-web</artifactId>
    <version>3.0.0-alpha-2</version>
</dependency>
org.apache.shiro:shiro-web fixed: 2.2.0
<dependency>
    <groupId>org.apache.shiro</groupId>
    <artifactId>shiro-web</artifactId>
    <version>2.2.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.shiro

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-43828, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.shiro

Analyze the terminal output to locate any version of Shiro web in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.0-alpha-2), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.shiro command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute, where the secure attribute for sensitive cookies in https sessions is not set. In Shiro web, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-43828 Affected Shiro web Versions

2 component(s)
Fixed Versions:
3.0.0-alpha-22.2.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.shiro:shiro-web
Maven
≥ 3.0.0-alpha-1
< 3.0.0-alpha-2
All 1 versions
3.0.0-alpha-1
3.0.0-alpha-2
org.apache.shiro:shiro-web
Maven
≥ 1.0.0-incubating
< 2.2.0
2.2.0

References

Frequently Asked Questions

What is CVE-2026-43828?
CVE-2026-43828 is a security vulnerability in Shiro web involving Apache Shiro sends sensitive cookies in HTTPS session without 'Secure' attribute under CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute.
Which Shiro web versions are affected?
Affected versions include releases prior to 3.0.0-alpha-2, 2.2.0 across affected packages: org.apache.shiro:shiro-web.
What version fixes CVE-2026-43828?
Upgrading to 3.0.0-alpha-2, 2.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is shiro-web affected?
Yes, org.apache.shiro:shiro-web is affected in releases prior to 3.0.0-alpha-2, 2.2.0. Upgrade your dependency to 3.0.0-alpha-2, 2.2.0 or later.
What CWE is associated with CVE-2026-43828?
CVE-2026-43828 is classified under CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute (The Secure attribute for sensitive cookies in HTTPS sessions is not set.).
How can I check Maven dependencies for CVE-2026-43828?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.shiro'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-c6r4-qjmw-cvj2",
  "modified" : "2026-06-30T17:27:51Z",
  "published" : "2026-05-26T13:30:50Z",
  "aliases" : [ "CVE-2026-43828" ],
  "summary" : "Apache Shiro sends sensitive cookies in HTTPS session without 'Secure' attribute",
  "details" : "Default configurations of Apache Shiro send sensitive cookies in HTTPS session without 'Secure' attribute.\n\nThis issue affects Apache Shiro from 1.0 to 2.1.0, and 3.0.0-alpha-1.\n\nUsers are recommended to upgrade to version 2.1.1, or 3.0.0-alpha-2 or later, which fixes the issue.\n\nIn the affected versions, Shiro-native session manager, as well as Remember-Me manager sends JSESSIONID and rememberMe cookies without 'secure' attribute by default.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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/RE:L/U:Amber"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.shiro:shiro-web"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0-incubating"
      }, {
        "fixed" : "2.2.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.shiro:shiro-web"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0-alpha-1"
      }, {
        "fixed" : "3.0.0-alpha-2"
      } ]
    } ],
    "versions" : [ "3.0.0-alpha-1" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-43828"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/shiro"
  }, {
    "type" : "WEB",
    "url" : "https://shiro.apache.org/security-reports.html#cve_2026_43828"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2026/05/25/7"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-614" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-30T17:27:51Z",
    "nvd_published_at" : "2026-05-25T21:16:34Z"
  }
}