Eclipse Jetty privilege escalation in JASPIAuthenticator

Severity: high · CVSS 7.4 · Published 2026-04-08

Eclipse Jetty, a widely used web server and servlet engine, contains a security flaw in its JASPI authentication component. Under specific conditions, the server fails to clear security credentials from its internal memory after a request is processed. This allows a new, unauthenticated user to potentially inherit the permissions and identity of a previous user, leading to unauthorized access to sensitive data or administrative functions.

Technologies: Eclipse Foundation Jetty. Vendors: Eclipse Foundation.

Quick answers

Is This vulnerability exploited in the wild?
No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
How severe is This vulnerability?
High severity, with a CVSS score of 7.4, published 8 April 2026.
Which products and versions are affected?
Eclipse Foundation Jetty 9.4.0 to 9.4.60, 10.0.0 to 10.0.28, 11.0.0 to 11.0.28, 12.0.0 to 12.0.33, 12.1.0 to 12.1.7.
Is there a fix for This vulnerability?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is This vulnerability attacked?
It is attacked over the network, in a software library.
Am I affected?
Check whether you run Eclipse Foundation Jetty at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A vulnerability exists in the JASPIAuthenticator class within Eclipse Jetty due to improper management of ThreadLocal variables. When processing authentication checks, the authenticator sets metadata in ThreadLocal storage; however, certain error conditions or missing callbacks (such as a missing CallerPrincipalCallback) trigger an early return before these variables are cleared. Because Jetty reuses worker threads for subsequent requests, a new request handled by the same thread can inherit the stale security context. This results in a broken access control scenario where an unauthenticated attacker can achieve privilege escalation by reusing the security roles of a previously authenticated user.

Affected products

  • Eclipse Jetty 9.4.0 to 9.4.60, 10.0.0 to 10.0.28, 11.0.0 to 11.0.28, 12.0.0 to 12.0.33, 12.1.0 to 12.1.7

Timeline

  • 2026-04-08: disclosed: Initial advisory publication
  • 2026-04-11: advisory: Detailed advisory GHSA-r7p8-xq5m-436c published
  • 2026-04-14: other: Duplicate advisory GHSA-gc59-r5jq-98qw withdrawn in favor of original report

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.