Vulnerabilities in pkg:maven/org.eclipse.jetty.ee8/jetty-ee8-jaspi

PACKAGE
Advisory Identifier: GHSA-r7p8-xq5m-436c
Advisory Summary

CVE-2026-5795 is a HIGH (CVSS 7.4) early return from the jaspiauthenticator vulnerability (CWE-287: Improper Authentication) affecting Eclipse Jetty libraries in the Maven ecosystem. The issue involves early return from the jaspiauthenticator code can potentially no clear threadlocal variables. Remediation is available by upgrading affected packages to version 12.1.8, 12.0.34, 11.0.29, 10.0.29, 9.4.61.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.eclipse.jetty.ee8/jetty-ee8-jaspi

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.eclipse.jetty.ee8/jetty-ee8-jaspi. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-r7p8-xq5m-436c CVE-2026-5795 HIGH Eclipse Jetty: Early return from the JASPIAuthenticator code can potentially no clear ThreadLocal variables

CVE-2026-5795 at a Glance

CVE Identifier CVE-2026-5795
GHSA Identifier GHSA-r7p8-xq5m-436c
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-287: Improper Authentication
Affected Product Eclipse Jetty
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-5795

To remediate this vulnerability, upgrade all affected Eclipse Jetty 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.eclipse.jetty.ee11:jetty-ee11-jaspi fixed: 12.1.8
<dependency>
    <groupId>org.eclipse.jetty.ee11</groupId>
    <artifactId>jetty-ee11-jaspi</artifactId>
    <version>12.1.8</version>
</dependency>
org.eclipse.jetty.ee10:jetty-ee10-jaspi fixed: 12.1.8
<dependency>
    <groupId>org.eclipse.jetty.ee10</groupId>
    <artifactId>jetty-ee10-jaspi</artifactId>
    <version>12.1.8</version>
</dependency>
org.eclipse.jetty.ee9:jetty-ee9-jaspi fixed: 12.1.8
<dependency>
    <groupId>org.eclipse.jetty.ee9</groupId>
    <artifactId>jetty-ee9-jaspi</artifactId>
    <version>12.1.8</version>
</dependency>
org.eclipse.jetty.ee8:jetty-ee8-jaspi fixed: 12.1.8
<dependency>
    <groupId>org.eclipse.jetty.ee8</groupId>
    <artifactId>jetty-ee8-jaspi</artifactId>
    <version>12.1.8</version>
</dependency>
org.eclipse.jetty.ee11:jetty-ee11-jaspi fixed: 12.0.34
<dependency>
    <groupId>org.eclipse.jetty.ee11</groupId>
    <artifactId>jetty-ee11-jaspi</artifactId>
    <version>12.0.34</version>
</dependency>
org.eclipse.jetty.ee10:jetty-ee10-jaspi fixed: 12.0.34
<dependency>
    <groupId>org.eclipse.jetty.ee10</groupId>
    <artifactId>jetty-ee10-jaspi</artifactId>
    <version>12.0.34</version>
</dependency>
org.eclipse.jetty.ee9:jetty-ee9-jaspi fixed: 12.0.34
<dependency>
    <groupId>org.eclipse.jetty.ee9</groupId>
    <artifactId>jetty-ee9-jaspi</artifactId>
    <version>12.0.34</version>
</dependency>
org.eclipse.jetty.ee8:jetty-ee8-jaspi fixed: 12.0.34
<dependency>
    <groupId>org.eclipse.jetty.ee8</groupId>
    <artifactId>jetty-ee8-jaspi</artifactId>
    <version>12.0.34</version>
</dependency>
org.eclipse.jetty:jetty-jaspi fixed: 11.0.29
<dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-jaspi</artifactId>
    <version>11.0.29</version>
</dependency>
org.eclipse.jetty:jetty-jaspi fixed: 10.0.29
<dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-jaspi</artifactId>
    <version>10.0.29</version>
</dependency>
org.eclipse.jetty:jetty-jaspi fixed: 9.4.61
<dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-jaspi</artifactId>
    <version>9.4.61</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.eclipse.jetty.ee11

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.eclipse.jetty.ee11

Analyze the terminal output to locate any version of Eclipse Jetty in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 12.1.8), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.eclipse.jetty.ee11 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Eclipse Jetty, 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

### Description (as reported) A security vulnerability has been identified in Jetty's `JaspiAuthenticator.java`. The root cause is a failure to consistently clear authentication metadata stored in `ThreadLocal` during certain error or incomplete authentication flows. Specifically, after a `GroupPrincipalCallback` is persisted into the `ThreadLocal`, the authentication process may exit prematurely — before the `ThreadLocal` storage is cleared — if a mandatory `CallerPrincipalCallback` is missing or an exception occurs. This allows a subsequent, unprivileged user processed by the same worker thread to inherit these residual security roles, leading to Broken Access Control and Privilege Escalation. See also attached PDF. ### Impact An unauthenticated user may gain ungrated privileges from a previous request (privilege escalation). ### Patches No patches yet. ### Workarounds Do not use Jetty's JASPI.

CVE-2026-5795 Affected Eclipse Jetty Versions

11 component(s)
Fixed Versions:
12.1.812.0.3411.0.2910.0.299.4.61
Product / Package Ecosystem Affected Versions Fixed Version
org.eclipse.jetty.ee11:jetty-ee11-jaspi
Maven
≥ 12.1.0
< 12.1.8
12.1.8
org.eclipse.jetty.ee10:jetty-ee10-jaspi
Maven
≥ 12.1.0
< 12.1.8
12.1.8
org.eclipse.jetty.ee9:jetty-ee9-jaspi
Maven
≥ 12.1.0
< 12.1.8
12.1.8
org.eclipse.jetty.ee8:jetty-ee8-jaspi
Maven
≥ 12.1.0
< 12.1.8
12.1.8
org.eclipse.jetty.ee11:jetty-ee11-jaspi
Maven
≥ 12.0.0
< 12.0.34
12.0.34
org.eclipse.jetty.ee10:jetty-ee10-jaspi
Maven
≥ 12.0.0
< 12.0.34
12.0.34
org.eclipse.jetty.ee9:jetty-ee9-jaspi
Maven
≥ 12.0.0
< 12.0.34
12.0.34
org.eclipse.jetty.ee8:jetty-ee8-jaspi
Maven
≥ 12.0.0
< 12.0.34
12.0.34
org.eclipse.jetty:jetty-jaspi
Maven
≥ 11.0.0
< 11.0.29
11.0.29
org.eclipse.jetty:jetty-jaspi
Maven
≥ 10.0.0
< 10.0.29
10.0.29
org.eclipse.jetty:jetty-jaspi
Maven
≥ 9.4.0
< 9.4.61
9.4.61

References

Frequently Asked Questions

What is CVE-2026-5795?
CVE-2026-5795 is a security vulnerability in Eclipse Jetty involving Early return from the JASPIAuthenticator code can potentially no clear ThreadLocal variables under CWE-287: Improper Authentication.
Which Eclipse Jetty versions are affected?
Affected versions include releases prior to 12.1.8, 12.0.34, 11.0.29, 10.0.29, 9.4.61 across affected packages: org.eclipse.jetty.ee11:jetty-ee11-jaspi, org.eclipse.jetty.ee10:jetty-ee10-jaspi, org.eclipse.jetty.ee9:jetty-ee9-jaspi, org.eclipse.jetty.ee8:jetty-ee8-jaspi, org.eclipse.jetty:jetty-jaspi.
What version fixes CVE-2026-5795?
Upgrading to 12.1.8, 12.0.34, 11.0.29, 10.0.29, 9.4.61 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jetty-ee11-jaspi affected?
Yes, org.eclipse.jetty.ee11:jetty-ee11-jaspi is affected in releases prior to 12.1.8, 12.0.34. Upgrade your dependency to 12.1.8, 12.0.34 or later.
Is jetty-ee10-jaspi affected?
Yes, org.eclipse.jetty.ee10:jetty-ee10-jaspi is affected in releases prior to 12.1.8, 12.0.34. Upgrade your dependency to 12.1.8, 12.0.34 or later.
What is the CVSS score of CVE-2026-5795?
CVE-2026-5795 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2026-5795?
CVE-2026-5795 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Maven dependencies for CVE-2026-5795?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.eclipse.jetty.ee11'. 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-r7p8-xq5m-436c",
  "modified" : "2026-04-14T00:06:27Z",
  "published" : "2026-04-14T00:06:27Z",
  "aliases" : [ "CVE-2026-5795" ],
  "summary" : "Eclipse Jetty: Early return from the JASPIAuthenticator code can potentially no clear ThreadLocal variables",
  "details" : "### Description (as reported)\n\nA security vulnerability has been identified in Jetty's  `JaspiAuthenticator.java`. \n\nThe root cause is a failure to consistently clear authentication metadata stored in  `ThreadLocal`  during certain error or incomplete authentication flows. \nSpecifically, after a `GroupPrincipalCallback`  is persisted into the  `ThreadLocal`, the authentication process may exit prematurely — before the  `ThreadLocal`  storage is cleared — if a mandatory `CallerPrincipalCallback`  is missing or an exception occurs. \nThis allows a subsequent, unprivileged user processed by the same worker thread to inherit these residual security roles, leading to Broken Access Control and Privilege Escalation.\n\nSee also attached PDF.\n\n### Impact\nAn unauthenticated user may gain ungrated privileges from a previous request (privilege escalation).\n\n### Patches\nNo patches yet.\n\n### Workarounds\nDo not use Jetty's JASPI.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jetty.ee11:jetty-ee11-jaspi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.1.0"
      }, {
        "fixed" : "12.1.8"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 12.1.7"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jetty.ee10:jetty-ee10-jaspi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.1.0"
      }, {
        "fixed" : "12.1.8"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 12.1.7"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jetty.ee9:jetty-ee9-jaspi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.1.0"
      }, {
        "fixed" : "12.1.8"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 12.1.7"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jetty.ee8:jetty-ee8-jaspi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.1.0"
      }, {
        "fixed" : "12.1.8"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 12.1.7"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jetty.ee11:jetty-ee11-jaspi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.0.0"
      }, {
        "fixed" : "12.0.34"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 12.0.33"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jetty.ee10:jetty-ee10-jaspi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.0.0"
      }, {
        "fixed" : "12.0.34"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 12.0.33"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jetty.ee9:jetty-ee9-jaspi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.0.0"
      }, {
        "fixed" : "12.0.34"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 12.0.33"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jetty.ee8:jetty-ee8-jaspi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.0.0"
      }, {
        "fixed" : "12.0.34"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 12.0.33"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jetty:jetty-jaspi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0"
      }, {
        "fixed" : "11.0.29"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 11.0.28"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jetty:jetty-jaspi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.0.0"
      }, {
        "fixed" : "10.0.29"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 10.0.28"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.jetty:jetty-jaspi"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.4.0"
      }, {
        "fixed" : "9.4.61"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 9.4.60"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/jetty/jetty.project/security/advisories/GHSA-r7p8-xq5m-436c"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-5795"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jetty/jetty.project"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/user-attachments/files/26118760/JaspiAuthenticator_Security_Report.pdf"
  }, {
    "type" : "WEB",
    "url" : "https://gitlab.eclipse.org/security/cve-assignment/-/issues/92"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-226", "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-14T00:06:27Z",
    "nvd_published_at" : null
  }
}