NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

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

highCVSS 3.1 7.4GHSA-r7p8-xq5m-436c

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.

Published Apr 14, 2026

Affected packages

org.eclipse.jetty.ee11:jetty-ee11-jaspi

Ecosystem
Maven
Affected
>= 12.1.0, <= 12.1.7
Fixed in
12.1.8
Check
mvn dependency:tree -Dincludes=org.eclipse.jetty.ee11:jetty-ee11-jaspi

org.eclipse.jetty.ee10:jetty-ee10-jaspi

Ecosystem
Maven
Affected
>= 12.1.0, <= 12.1.7
Fixed in
12.1.8
Check
mvn dependency:tree -Dincludes=org.eclipse.jetty.ee10:jetty-ee10-jaspi

org.eclipse.jetty.ee9:jetty-ee9-jaspi

Ecosystem
Maven
Affected
>= 12.1.0, <= 12.1.7
Fixed in
12.1.8
Check
mvn dependency:tree -Dincludes=org.eclipse.jetty.ee9:jetty-ee9-jaspi

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

Ecosystem
Maven
Affected
>= 12.1.0, <= 12.1.7
Fixed in
12.1.8
Check
mvn dependency:tree -Dincludes=org.eclipse.jetty.ee8:jetty-ee8-jaspi

org.eclipse.jetty.ee11:jetty-ee11-jaspi

Ecosystem
Maven
Affected
>= 12.0.0, <= 12.0.33
Fixed in
12.0.34
Check
mvn dependency:tree -Dincludes=org.eclipse.jetty.ee11:jetty-ee11-jaspi

org.eclipse.jetty.ee10:jetty-ee10-jaspi

Ecosystem
Maven
Affected
>= 12.0.0, <= 12.0.33
Fixed in
12.0.34
Check
mvn dependency:tree -Dincludes=org.eclipse.jetty.ee10:jetty-ee10-jaspi

org.eclipse.jetty.ee9:jetty-ee9-jaspi

Ecosystem
Maven
Affected
>= 12.0.0, <= 12.0.33
Fixed in
12.0.34
Check
mvn dependency:tree -Dincludes=org.eclipse.jetty.ee9:jetty-ee9-jaspi

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

Ecosystem
Maven
Affected
>= 12.0.0, <= 12.0.33
Fixed in
12.0.34
Check
mvn dependency:tree -Dincludes=org.eclipse.jetty.ee8:jetty-ee8-jaspi

org.eclipse.jetty:jetty-jaspi

Ecosystem
Maven
Affected
>= 11.0.0, <= 11.0.28
Fixed in
11.0.29
Check
mvn dependency:tree -Dincludes=org.eclipse.jetty:jetty-jaspi

org.eclipse.jetty:jetty-jaspi

Ecosystem
Maven
Affected
>= 10.0.0, <= 10.0.28
Fixed in
10.0.29
Check
mvn dependency:tree -Dincludes=org.eclipse.jetty:jetty-jaspi

org.eclipse.jetty:jetty-jaspi

Ecosystem
Maven
Affected
>= 9.4.0, <= 9.4.60
Fixed in
9.4.61
Check
mvn dependency:tree -Dincludes=org.eclipse.jetty:jetty-jaspi

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to HRsGIT.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology