GHSA-7p3p-8qv8-m2vh

    Dashboard / Vulnerabilities / GHSA-7p3p-8qv8-m2vh

    GHSA-7p3p-8qv8-m2vh

    Published: 22 Jul 2026Last Modified: 10 Sept 2026
    Aliases:

    Summary: Eclipse Jetty: HTTP Authority/Host mismatch

    Details: #### Summary Jetty currently accepts HTTP/2 and HTTP/3 requests where the regular Host header and the pseudo-header :authority do not match. As a result, the same request can carry two different host identities through Jetty: - logic based on `HttpURI` / `Request.getServerName(request)` uses `:authority` - logic based on raw request headers continues to use `Host` This creates a host/authority confusion condition that can break security assumptions in higher layers. Jetty already performs an explicit authority/Host consistency check on the HTTP/1.1 path, but equivalent validation is missing on the HTTP/2 and HTTP/3 paths. #### Security Impact This issue is not inherently remote code execution, but it can become security-relevant in deployments that rely on the request host for security-sensitive decisions, including: - host-based access control - virtual host isolation - multi-tenant routing by hostname - login/logout/callback URL construction - reverse proxy and forwarded-header trust chains - auditing, cache keys, and absolute URL generation Potential consequences include: - bypass of host-based ACLs - virtual host or tenant isolation failures - incorrect or attacker-influenced redirect/callback targets - inconsistent proxy/downstream interpretation of the original target host - misleading logs and audit records #### Technical Root Cause 1. On the HTTP/2 and HTTP/3 metadata builder paths: - `:authority` is parsed separately into authority/URI state - `Host` is preserved as a normal request header - the two values are not compared for consistency 2. On the HTTP/2 and HTTP/3 server entry paths: - Jetty calls `ComplianceUtils.verify(httpCompliance, requestMetaData, listener)` - this verification does not enforce `MISMATCHED_AUTHORITY` 3. On the HTTP/1.1 path: - Jetty explicitly checks whether authority and `Host` match - mismatches are rejected by default #### Relevant Code Locations HTTP/2 metadata builder: - `jetty-core/jetty-http2/jetty-http2-hpack/src/main/java/org/eclipse/jetty/http2/hpack/internal/MetaDataBuilder.java` HTTP/3 metadata builder: - `jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/metadata/MetaDataBuilder.java` HTTP/2 server entry: - `jetty-core/jetty-http2/jetty-http2-server/src/main/java/org/eclipse/jetty/http2/server/internal/HttpStreamOverHTTP2.java` HTTP/3 server entry: - `jetty-core/jetty-http3/jetty-http3-server/src/main/java/org/eclipse/jetty/http3/server/internal/HttpStreamOverHTTP3.java` Shared HTTP compliance verification: - `jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/ComplianceUtils.java` HTTP/1.1 authority/Host consistency check: - `jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/internal/HttpConnection.java` Defined but not enforced on H2/H3: - `jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/HttpCompliance.java` - violation: MISMATCHED_AUTHORITY #### Reproduction I reproduced this on local Jetty 12.1.9-SNAPSHOT source. Minimal reproduction steps: 1. Start a Jetty HTTP/2 or HTTP/3 test server. 2. Send a request with: - :authority = localhost:<port> - Host = evil.example:<port> 3. In the request handler, inspect both: - Request.getServerName(request) - request.getHeaders().get(HttpHeader.HOST) 4. Observe whether Jetty rejects the request or allows both values to remain visible. Observed result: - HTTP/2: request is accepted and returns 200 - HTTP/3: request is accepted and returns 200 - the server can observe both: - serverName=localhost - hostHeader=evil.example:<port> This shows that a single attacker-controlled request can preserve two conflicting host interpretations inside Jetty. #### Tests Used HTTP/2 rejection test: - `org.eclipse.jetty.http2.tests.HTTP2Test#testRejectMismatchedHostHeaderAndAuthority` HTTP/2 exploitability test: - `org.eclipse.jetty.http2.tests.HTTP2Test#testMismatchedHostHeaderAndAuthoritySplitsAuthorityFromHostHeader` HTTP/3 rejection test: - `org.eclipse.jetty.http3.tests.HandlerClientServerTest#testRejectMismatchedHostHeaderAndAuthority` HTTP/3 exploitability test: - `org.eclipse.jetty.http3.tests.HandlerClientServerTest#testMismatchedHostHeaderAndAuthoritySplitsAuthorityFromHostHeader` Observed behavior: - both rejection tests fail because Jetty returns 200 instead of 400 - both exploitability tests pass, confirming that Jetty exposes different host values to different layers #### Project-Internal Evidence of Real Impact Examples: - `jetty-openid` uses `Request.getServerName(request)` to construct redirect URLs - `jetty-ee11-proxy` uses the raw `Host` header when building `Forwarded` This indicates that the issue is not merely theoretical: Jetty’s own ecosystem already contains code paths where different host sources are used for different purposes. #### Affected Version Confirmed affected version: - 12.1.9-SNAPSHOT Other versions may also be affected if they share the same HTTP/2 / HTTP/3 request construction and compliance-validation logic. I have not yet completed a historical version matrix and would recommend confirming exact affected ranges from Jetty’s branch history. #### Suggested Fix Recommend adding HTTP/2 and HTTP/3 validation equivalent to the existing HTTP/1.1 authority/Host consistency check: - if both :authority and regular Host are present - normalize and compare them - if they do not match, reject the request with 400 Bad Request - route the failure through the existing MISMATCHED_AUTHORITY compliance mechanism Also adding explicit HTTP/2 and HTTP/3 regression coverage for this case. #### Disclosure Status - not publicly disclosed - no public issue filed - shared only privately with the Jetty security contacts

    Affected packages

    Package

    Name: org.eclipse.jetty:jetty-server

    Purl: pkg:maven/org.eclipse.jetty/jetty-server

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 9.4.0.v20161208
    Fixed -None

    Affected versions

    9.4.0.v20161208
    9.4.0.v20180619
    9.4.1.v20170120
    9.4.1.v20180619
    9.4.10.RC0
    9.4.10.RC1
    9.4.10.v20180503
    9.4.11.v20180605
    9.4.12.RC0
    9.4.12.RC1
    9.4.12.RC2
    9.4.12.v20180830
    9.4.13.v20181111
    9.4.14.v20181114
    9.4.15.v20190215
    9.4.16.v20190411
    9.4.17.v20190418
    9.4.18.v20190429
    9.4.19.v20190610
    9.4.2.v20170220
    9.4.2.v20180619
    9.4.20.v20190813
    9.4.21.v20190926
    9.4.22.v20191022
    9.4.23.v20191118
    9.4.24.v20191120
    9.4.25.v20191220
    9.4.26.v20200117
    9.4.27.v20200227
    9.4.28.v20200408
    9.4.29.v20200521
    9.4.3.v20170317
    9.4.3.v20180619
    9.4.30.v20200611
    9.4.31.v20200723
    9.4.32.v20200930
    9.4.33.v20201020
    9.4.34.v20201102
    9.4.35.v20201120
    9.4.36.v20210114
    9.4.37.v20210219
    9.4.38.v20210224
    9.4.39.v20210325
    9.4.4.v20170414
    9.4.4.v20180619
    9.4.40.v20210413
    9.4.41.v20210516
    9.4.42.v20210604
    9.4.43.v20210629
    9.4.44.v20210927
    9.4.45.v20220203
    9.4.46.v20220331
    9.4.47.v20220610
    9.4.48.v20220622
    9.4.49.v20220914
    9.4.5.v20170502
    9.4.5.v20180619
    9.4.50.v20221201
    9.4.51.v20230217
    9.4.52.v20230823
    9.4.53.v20231009
    9.4.54.v20240208
    9.4.55.v20240627
    9.4.56.v20240826
    9.4.57.v20241219
    9.4.58.v20250814
    9.4.6.v20170531
    9.4.6.v20180619
    9.4.7.RC0
    9.4.7.v20170914
    9.4.7.v20180619
    9.4.8.v20171121
    9.4.8.v20180619
    9.4.9.v20180320

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High