High

Eclipse Jetty: Early return from the JASPIAuthenticator code can potentially no clear ThreadLocal variables

  • Disclosed: 14.04.2026
  • Updated: 11.10.2026 12:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.eclipse.jetty.ee10:jetty-ee10-jaspi >= 12.1.0, < 12.1.8, >= 12.0.0, < 12.0.34 12.1.8, 12.0.34
Java / Kotlin (Maven) org.eclipse.jetty.ee11:jetty-ee11-jaspi >= 12.1.0, < 12.1.8, >= 12.0.0, < 12.0.34 12.1.8, 12.0.34
Java / Kotlin (Maven) org.eclipse.jetty.ee8:jetty-ee8-jaspi >= 12.1.0, < 12.1.8, >= 12.0.0, < 12.0.34 12.1.8, 12.0.34
Java / Kotlin (Maven) org.eclipse.jetty.ee9:jetty-ee9-jaspi >= 12.1.0, < 12.1.8, >= 12.0.0, < 12.0.34 12.1.8, 12.0.34
Java / Kotlin (Maven) org.eclipse.jetty:jetty-jaspi >= 11.0.0, < 11.0.29, >= 10.0.0, < 10.0.29, >= 9.4.0, < 9.4.61 11.0.29, 10.0.29, 9.4.61

References

CVSS score 7.4/10
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness (CWE)
CWE-226, CWE-287
Platform
Java / Kotlin (Maven)
Package
org.eclipse.jetty.ee10:jetty-ee10-jaspi, org.eclipse.jetty.ee11:jetty-ee11-jaspi, org.eclipse.jetty.ee8:jetty-ee8-jaspi
Disclosed
14.04.2026
Updated
11.10.2026 12:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-r7p8-xq5m-436c - CC BY 4.0

Vulnerability history: org.eclipse.jetty.ee8:jetty-ee8-jaspi

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

This is the only known vulnerability of this package.

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.