CVE-2026-95533
Patch Available.
This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.
Overview
Eclipse Jetty is a widely used, embeddable Java web server and servlet container. It supports HTTP/1.1, HTTP/2, HTTP/3, and WebSocket, and is commonly deployed both as a standalone server and embedded within Java application runtimes and frameworks. Its jetty-util-ajax module provides JSON utilities, including the JSON parser and generator and the non-blocking AsyncJSON parser, which convert JSON text into Java maps, arrays, and values.
A denial of service vulnerability (CVE-2026-95533) has been identified in the jetty-util-ajax package, which allows attackers to crash the parsing thread with a StackOverflowError by supplying JSON with a very deep nesting of objects or arrays. The parsers place no limit on nesting depth, so a document made of repeated opening brackets can exhaust the thread stack of any application that parses untrusted JSON with these utilities.
Per OWASP: The Denial of Service (DoS) attack is focused on making a resource (site, application, server) unavailable for the purpose it was designed.
This issue affects multiple versions of Eclipse Jetty.
Details
Module Info
- Product: Eclipse Jetty
- Affected packages:
org.eclipse.jetty:jetty-util-ajax - Affected versions: >=9.4.0 <=9.4.65, >=10.0.0 <=10.0.33, >=11.0.0 <=11.0.33, >=12.0.0 <=12.0.39, >=12.1.0 <=12.1.13
- GitHub repository: https://github.com/jetty/jetty.project
- Published packages: https://central.sonatype.com/artifact/org.eclipse.jetty/jetty-util-ajax
- Package manager: Maven
- Fixed in:
- OSS Eclipse Jetty 12.0.40, 12.1.14
- NES for Jetty v9.4.66, v10.0.34, v11.0.34
Vulnerability Info
This High-severity vulnerability is found in the jetty-util-ajax package in multiple versions of Eclipse Jetty.
org.eclipse.jetty.util.ajax.JSON is a recursive descent parser. JSON.parse(Source) dispatches on the next character, and an opening brace or bracket hands off to parseObject or parseArray. Those methods parse each member or element by calling parse(Source) again, so every level of nesting in the input adds another set of frames to the Java call stack:
public Object parse(Source source)
{
...
switch (c)
{
case '{':
return parseObject(source);
case '[':
return parseArray(source);
...
}
protected Object parseObject(Source source)
{
...
Object value = contextFor(name).parse(source);
...
}
protected Object parseArray(Source source)
{
...
item = contextForArray().parse(source);
...
}Nothing counts or caps the nesting depth. An input such as a few hundred thousand [ characters, or a long run of {"a": prefixes, recurses until the thread stack is exhausted and the JVM throws StackOverflowError. The static helpers JSON.parse(String), JSON.parse(Reader) and JSON.parse(InputStream), and the instance methods fromJSON(String) and parse(Source), all reach this path. The non-blocking AsyncJSON parser also accepts objects and arrays nested to any depth.
StackOverflowError is an Error, not an Exception, so request handling code that catches Exception around a parse call does not catch it. An attacker who can send JSON to an endpoint that passes it to these parsers can therefore repeatedly abort request processing and deny service to legitimate users.
Mitigation
Only recent versions of Eclipse Jetty are community-supported. Only community-supported versions will receive updates to address this issue. As of January 1, 2026 the Jetty project and Webtide no longer publish Jetty 9, Jetty 10, or Jetty 11 releases to Maven Central; see the project's End of Life announcement.
Users of the affected components should apply one of the following mitigations:
- Upgrade affected applications to a supported version of Eclipse Jetty (12.0.40 or 12.1.14).
- Leverage a commercial support partner like HeroDevs for post-EOL security support.
Credits
- apvxlab (finder)