# CVE-2026-5795: Eclipse Jetty: Early return from the JASPIAuthenticator code can potentially no clear ThreadLocal variables

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.4
- **CVSS:** 7.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.65% (percentile 46, 2026-11-26)
- **CWE:** CWE-226, CWE-287
- **Aliases:** GHSA-r7p8-xq5m-436c
- **Published:** 2026-04-08T13:32:28.935Z
- **Modified:** 2026-09-14T13:18:42.263Z

## Who should check

- Projects that depend on Maven package org.eclipse.jetty.ee11:jetty-ee11-jaspi (\>= 12.1.0, \< 12.1.8)
- Projects that depend on Maven package org.eclipse.jetty.ee10:jetty-ee10-jaspi (\>= 12.1.0, \< 12.1.8)
- Projects that depend on Maven package org.eclipse.jetty.ee9:jetty-ee9-jaspi (\>= 12.1.0, \< 12.1.8)
- Projects that depend on Maven package org.eclipse.jetty.ee8:jetty-ee8-jaspi (\>= 12.1.0, \< 12.1.8)
- Projects that depend on Maven package org.eclipse.jetty:jetty-jaspi (\>= 11.0.0, \< 11.0.29)
- Anyone running Eclipse Foundation Eclipse Jetty \>= 12.1.0, \<= 12.1.7; \>= 12.0.0, \<= 12.0.33; \>= 11.0.0, \<= 11.0.28; \>= 10.0.0, \<= 10.0.28; \>= 9.4.0, \<= 9.4.60

## Description

In Eclipse Jetty, the class JASPIAuthenticator initiates the authentication checks, which set two ThreadLocal variable.


Upon returning from the initial checks, there are conditions that cause an early return from the JASPIAuthenticator code without clearing those ThreadLocals.


A subsequent request using the same thread inherits the ThreadLocal values, leading to a broken access control and privilege escalation.

## Affected and fixed versions

- Maven `org.eclipse.jetty.ee11:jetty-ee11-jaspi`: affected \>= 12.1.0, \< 12.1.8; fixed 12.1.8, 12.0.34 (osv)
- Maven `org.eclipse.jetty.ee10:jetty-ee10-jaspi`: affected \>= 12.1.0, \< 12.1.8; fixed 12.1.8, 12.0.34 (osv)
- Maven `org.eclipse.jetty.ee9:jetty-ee9-jaspi`: affected \>= 12.1.0, \< 12.1.8; fixed 12.1.8, 12.0.34 (osv)
- Maven `org.eclipse.jetty.ee8:jetty-ee8-jaspi`: affected \>= 12.1.0, \< 12.1.8; fixed 12.1.8, 12.0.34 (osv)
- Maven `org.eclipse.jetty:jetty-jaspi`: affected \>= 11.0.0, \< 11.0.29; fixed 11.0.29, 10.0.29, 9.4.61 (osv)
- Eclipse Foundation Eclipse Jetty: \>= 12.1.0, \<= 12.1.7; \>= 12.0.0, \<= 12.0.33; \>= 11.0.0, \<= 11.0.28; \>= 10.0.0, \<= 10.0.28; \>= 9.4.0, \<= 9.4.60 (cvelist)

## Mitigation

- Upgrade org.eclipse.jetty.ee11:jetty-ee11-jaspi to one of 12.1.8, 12.0.34 (or later in the same release line).
- Upgrade org.eclipse.jetty.ee10:jetty-ee10-jaspi to one of 12.1.8, 12.0.34 (or later in the same release line).
- Upgrade org.eclipse.jetty.ee9:jetty-ee9-jaspi to one of 12.1.8, 12.0.34 (or later in the same release line).
- Upgrade org.eclipse.jetty.ee8:jetty-ee8-jaspi to one of 12.1.8, 12.0.34 (or later in the same release line).
- Upgrade org.eclipse.jetty:jetty-jaspi to one of 11.0.29, 10.0.29, 9.4.61 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-5795. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-5795.md
Affected: org.eclipse.jetty.ee11:jetty-ee11-jaspi >= 12.1.0, < 12.1.8; org.eclipse.jetty.ee10:jetty-ee10-jaspi >= 12.1.0, < 12.1.8; org.eclipse.jetty.ee9:jetty-ee9-jaspi >= 12.1.0, < 12.1.8; org.eclipse.jetty.ee8:jetty-ee8-jaspi >= 12.1.0, < 12.1.8; org.eclipse.jetty:jetty-jaspi >= 11.0.0, < 11.0.29
Fixed in: 12.1.8, 12.0.34, 11.0.29, 10.0.29, 9.4.61

Steps:
1. Search this machine and project for org.eclipse.jetty.ee11:jetty-ee11-jaspi (Maven), org.eclipse.jetty.ee10:jetty-ee10-jaspi (Maven), org.eclipse.jetty.ee9:jetty-ee9-jaspi (Maven), org.eclipse.jetty.ee8:jetty-ee8-jaspi (Maven), org.eclipse.jetty:jetty-jaspi (Maven), Eclipse Foundation Eclipse Jetty: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-5795 being exploited?

There is no confirmed exploitation: CVE-2026-5795 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.65% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-5795?

High: CVSS 7.4 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-5795?

org.eclipse.jetty.ee11:jetty-ee11-jaspi \>= 12.1.0, \< 12.1.8; org.eclipse.jetty.ee10:jetty-ee10-jaspi \>= 12.1.0, \< 12.1.8; org.eclipse.jetty.ee9:jetty-ee9-jaspi \>= 12.1.0, \< 12.1.8; org.eclipse.jetty.ee8:jetty-ee8-jaspi \>= 12.1.0, \< 12.1.8; org.eclipse.jetty:jetty-jaspi \>= 11.0.0, \< 11.0.29.

### Is there a fix for CVE-2026-5795?

Yes. Fixed in 12.1.8, 12.0.34, 11.0.29, 10.0.29, 9.4.61. Upgrade org.eclipse.jetty.ee11:jetty-ee11-jaspi to one of 12.1.8, 12.0.34 (or later in the same release line). Upgrade org.eclipse.jetty.ee10:jetty-ee10-jaspi to one of 12.1.8, 12.0.34 (or later in the same release line). Upgrade org.eclipse.jetty.ee9:jetty-ee9-jaspi to one of 12.1.8, 12.0.34 (or later in the same release line). Upgrade org.eclipse.jetty.ee8:jetty-ee8-jaspi to one of 12.1.8, 12.0.34 (or later in the same release line). Upgrade org.eclipse.jetty:jetty-jaspi to one of 11.0.29, 10.0.29, 9.4.61 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-5795?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/jetty/jetty.project/security/advisories/GHSA-r7p8-xq5m-436chttps://>
- vendor: <https://access.redhat.com/errata/RHSA-2026:25089>
- vendor: <https://access.redhat.com/errata/RHSA-2026:28573>
- vendor: <https://access.redhat.com/errata/RHSA-2026:17668>
- vendor: <https://github.com/jetty/jetty.project/security/advisories/GHSA-r7p8-xq5m-436c>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-5795>
- other: <https://gitlab.eclipse.org/security/cve-assignment/-/issues/92>
- other: <https://access.redhat.com/security/cve/CVE-2026-5795>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2456519>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5795.json>
- other: <https://github.com/jetty/jetty.project>
- other: <https://github.com/user-attachments/files/26118760/JaspiAuthenticator_Security_Report.pdf>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-5795>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-r7p8-xq5m-436c> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-5795> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-5795>
