Vulnerabilities in pkg:maven/org.eclipse.jetty/jetty-jaspi
PACKAGECVE-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.
pkg:maven/org.eclipse.jetty/jetty-jaspi
Vulnerability advisories affecting package pkg:maven/org.eclipse.jetty/jetty-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
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).
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.
<dependency>
<groupId>org.eclipse.jetty.ee11</groupId>
<artifactId>jetty-ee11-jaspi</artifactId>
<version>12.1.8</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-jaspi</artifactId>
<version>12.1.8</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.ee9</groupId>
<artifactId>jetty-ee9-jaspi</artifactId>
<version>12.1.8</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.ee8</groupId>
<artifactId>jetty-ee8-jaspi</artifactId>
<version>12.1.8</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.ee11</groupId>
<artifactId>jetty-ee11-jaspi</artifactId>
<version>12.0.34</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-jaspi</artifactId>
<version>12.0.34</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.ee9</groupId>
<artifactId>jetty-ee9-jaspi</artifactId>
<version>12.0.34</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.ee8</groupId>
<artifactId>jetty-ee8-jaspi</artifactId>
<version>12.0.34</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jaspi</artifactId>
<version>11.0.29</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jaspi</artifactId>
<version>10.0.29</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jaspi</artifactId>
<version>9.4.61</version>
</dependency>
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
CVE-2026-5795 Affected Eclipse Jetty Versions
11 component(s)| 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?
Which Eclipse Jetty versions are affected?
What version fixes CVE-2026-5795?
Is jetty-ee11-jaspi affected?
Is jetty-ee10-jaspi affected?
What is the CVSS score of CVE-2026-5795?
What CWE is associated with CVE-2026-5795?
How can I check Maven dependencies for CVE-2026-5795?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}