Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-76182 Overview
Eclipse Jetty contains a query parameter injection flaw in the TryPathsHandler and TryFilesFilter components. Both components can be configured to forward requests to template URIs such as index?p=$path, where $path is substituted with the original request path. Because request paths may contain reserved URI query characters, attackers can inject additional query parameters by crafting paths that include characters like &. The flaw is categorized under [CWE-74] (Improper Neutralization of Special Elements in Output Used by a Downstream Component).
Critical Impact
Attackers can inject arbitrary query parameters into forwarded requests, potentially altering downstream application logic that trusts query parameters supplied by the Jetty handler.
Affected Products
- Eclipse Jetty deployments using TryPathsHandler
- Eclipse Jetty deployments using TryFilesFilter
- Java web applications relying on Jetty path-to-query template rewriting
Discovery Timeline
- 2026-10-15 - CVE CVE-2026-76182 published to NVD
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2026-76182
Vulnerability Analysis
The vulnerability resides in how Jetty's TryPathsHandler and TryFilesFilter build forwarded request URIs from configured templates. Administrators configure a template such as index?p=$path, intending $path to be treated as a single opaque value within the p query parameter. Jetty substitutes the raw request path into the template without encoding reserved query characters.
When a request arrives for /s&a=1, the handler substitutes the path directly into the template to produce index?p=/s&a=1. The downstream request processor parses this string according to standard URI query rules and produces two parameters: p=/s and a=1. The intended single parameter p=/s&a=1 is lost. Attackers can inject arbitrary parameter names and values that the application logic may trust.
Root Cause
The root cause is missing URI query component encoding during template expansion. Jetty inserts the request path verbatim rather than percent-encoding characters reserved in the query component, notably &, =, and #. This violates the principle of contextual output encoding when passing data across a parser boundary.
Attack Vector
Exploitation requires no authentication and can be triggered remotely over the network by issuing a crafted HTTP request to any resource that is routed through a vulnerable TryPathsHandler or TryFilesFilter configuration. The attacker encodes additional parameters in the URL path. Impact depends on how the backend consumes the forwarded query string, with integrity-impacting outcomes most likely when the application makes authorization or routing decisions based on injected parameters.
See the GitHub Security Advisory GHSA-4hxv-32vm-5h2m for authoritative technical details.
Detection Methods for CVE-2026-76182
Indicators of Compromise
- Access log entries containing reserved query characters such as &, =, or ? embedded inside the request path component.
- Downstream application logs showing unexpected query parameters that do not appear in configured templates.
- Repeated requests probing endpoints handled by TryPathsHandler or TryFilesFilter with URL-encoded ampersands.
Detection Strategies
- Inspect Jetty configuration for use of TryPathsHandler or TryFilesFilter with templates that embed $path inside a query string.
- Correlate original request paths with forwarded internal URIs to identify parameter count mismatches.
- Deploy web application firewall rules that flag request paths containing unencoded & or = characters.
Monitoring Recommendations
- Enable verbose request logging on Jetty front-end components to capture full request URIs before and after forwarding.
- Alert on anomalous query parameter frequencies for endpoints behind path-rewriting handlers.
- Track HTTP 4xx and 5xx spikes against routes governed by TryPathsHandler as a signal of exploitation probing.
How to Mitigate CVE-2026-76182
Immediate Actions Required
- Audit all Jetty deployments for TryPathsHandler and TryFilesFilter configurations that place $path inside a URI query component.
- Apply the Eclipse Jetty security update referenced in the vendor advisory once available for your Jetty version.
- Restrict exposure of affected endpoints behind authenticated reverse proxies while remediation is pending.
Patch Information
Refer to the GitHub Security Advisory GHSA-4hxv-32vm-5h2m and the Eclipse CVE Assignment Work Item #237 for the fixed Jetty versions and upgrade instructions.
Workarounds
- Reconfigure TryPathsHandler and TryFilesFilter to use template forms that place $path in the URI path segment rather than inside a query parameter.
- Add an upstream filter that percent-encodes reserved query characters in the request path before Jetty applies template substitution.
- Validate and reject request paths containing raw &, =, or # characters at the perimeter where business logic permits.
# Configuration example - prefer path-based templates
# Vulnerable template form:
# index?p=$path
# Safer template form (path segment):
# index/$path
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

