{"id":"CVE-2026-6790","aliases":["CVE-2026-6790","GHSA-7p3p-8qv8-m2vh"],"related":[],"kind":"vulnerability","state":"published","title":"Eclipse Jetty: HTTP Authority/Host mismatch","summary":"In Eclipse Jetty, for HTTP/1, HTTP/2 and HTTP/3 requests, there is no strict check that the request authority (host and port) matches what provided in the Host header (if present).\n\n\n\n\nThis was not enforced in earlier HTTP RFC (for example, in RFC 2616), but it is in the latest RFC (9110 and 9112).\n\n\n\n\nThis mismatch can cause a number of problems that may be classified as vulnerabilities such as:\n\n\n\n  *  \n        \n      URI constructions (for example, for redirects -- this is typical for login pages)\n\n  *  \n        \n      Virtual host selection\n\n  *  \n        \n      Reverse proxying\n\n  *  \n        \n      Misleading logs\n\n  *  \n        \n      Etc.\n\n\n\n\n\n\nGiven that the latest RFCs require that request authority and Host header must match, Jetty should enforce this invariant.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In Eclipse Jetty, for HTTP/1, HTTP/2 and HTTP/3 requests, there is no strict check that the request authority (host and port) matches what provided in the Host header (if present).\n\n\n\n\nThis was not enforced in earlier HTTP RFC (for example, in RFC 2616), but it is in the latest RFC (9110 and 9112).\n\n\n\n\nThis mismatch can cause a number of problems that may be classified as vulnerabilities such as:\n\n\n\n  *  \n        \n      URI constructions (for example, for redirects -- this is typical for login pages)\n\n  *  \n        \n      Virtual host selection\n\n  *  \n        \n      Reverse proxying\n\n  *  \n        \n      Misleading logs\n\n  *  \n        \n      Etc.\n\n\n\n\n\n\nGiven that the latest RFCs require that request authority and Host header must match, Jetty should enforce this invariant.","source":"cvelist"},{"lang":"en","text":"#### Summary\n\nJetty currently accepts HTTP/2 and HTTP/3 requests where the regular\nHost header and the pseudo-header :authority\ndo not match. As a result, the same request can carry two different host identities\nthrough Jetty:\n\n- logic based on `HttpURI` / `Request.getServerName(request)` uses `:authority`\n- logic based on raw request headers continues to use `Host`\n\nThis creates a host/authority confusion condition that can break\nsecurity assumptions in higher layers.\n\nJetty already performs an explicit authority/Host consistency check on\nthe HTTP/1.1 path, but equivalent validation is missing on the HTTP/2\nand HTTP/3 paths.\n\n#### Security Impact\n\nThis issue is not inherently remote code execution, but it can become\nsecurity-relevant in deployments that rely on the request host for\nsecurity-sensitive decisions, including:\n\n- host-based access control\n- virtual host isolation\n- multi-tenant routing by hostname\n- login/logout/callback URL construction\n- reverse proxy and forwarded-header trust chains\n- auditing, cache keys, and absolute URL generation\n\nPotential consequences include:\n\n- bypass of host-based ACLs\n- virtual host or tenant isolation failures\n- incorrect or attacker-influenced redirect/callback targets\n- inconsistent proxy/downstream interpretation of the original target host\n- misleading logs and audit records\n\n#### Technical Root Cause\n\n1. On the HTTP/2 and HTTP/3 metadata builder paths:\n\n- `:authority` is parsed separately into authority/URI state\n- `Host` is preserved as a normal request header\n- the two values are not compared for consistency\n\n2. On the HTTP/2 and HTTP/3 server entry paths:\n\n- Jetty calls `ComplianceUtils.verify(httpCompliance, requestMetaData, listener)`\n- this verification does not enforce `MISMATCHED_AUTHORITY`\n\n3. On the HTTP/1.1 path:\n\n- Jetty explicitly checks whether authority and `Host` match\n- mismatches are rejected by default\n\n#### Relevant Code Locations\n\nHTTP/2 metadata builder:\n\n- `jetty-core/jetty-http2/jetty-http2-hpack/src/main/java/org/eclipse/jetty/http2/hpack/internal/MetaDataBuilder.java`\n\nHTTP/3 metadata builder:\n\n- `jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/metadata/MetaDataBuilder.java`\n\nHTTP/2 server entry:\n\n- `jetty-core/jetty-http2/jetty-http2-server/src/main/java/org/eclipse/jetty/http2/server/internal/HttpStreamOverHTTP2.java`\n\nHTTP/3 server entry:\n\n- `jetty-core/jetty-http3/jetty-http3-server/src/main/java/org/eclipse/jetty/http3/server/internal/HttpStreamOverHTTP3.java`\n\nShared HTTP compliance verification:\n\n- `jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/ComplianceUtils.java`\n\nHTTP/1.1 authority/Host consistency check:\n\n- `jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/internal/HttpConnection.java`\n\nDefined but not enforced on H2/H3:\n\n- `jetty-core/jetty-http/src/main/java/org/eclipse/jetty/http/HttpCompliance.java`\n- violation: MISMATCHED_AUTHORITY\n\n#### Reproduction\n\nI reproduced this on local Jetty 12.1.9-SNAPSHOT source.\n\nMinimal reproduction steps:\n\n1. Start a Jetty HTTP/2 or HTTP/3 test server.\n2. Send a request with:\n    - :authority = localhost:<port>\n    - Host = evil.example:<port>\n3. In the request handler, inspect both:\n    - Request.getServerName(request)\n    - request.getHeaders().get(HttpHeader.HOST)\n4. Observe whether Jetty rejects the request or allows both values to remain visible.\nObserved result:\n    - HTTP/2: request is accepted and returns 200\n    - HTTP/3: request is accepted and returns 200\n    - the server can observe both:\n        - serverName=localhost\n        - hostHeader=evil.example:<port>\n\nThis shows that a single attacker-controlled request can preserve two conflicting host interpretations inside Jetty.\n\n#### Tests Used\n\n\nHTTP/2 rejection test:\n\n- `org.eclipse.jetty.http2.tests.HTTP2Test#testRejectMismatchedHostHeaderAndAuthority`\n\nHTTP/2 exploitability test:\n\n- `org.eclipse.jetty.http2.tests.HTTP2Test#testMismatchedHostHeaderAndAuthoritySplitsAuthorityFromHostHeader`\n\nHTTP/3 rejection test:\n\n- `org.eclipse.jetty.http3.tests.HandlerClientServerTest#testRejectMismatchedHostHeaderAndAuthority`\n\nHTTP/3 exploitability test:\n\n- `org.eclipse.jetty.http3.tests.HandlerClientServerTest#testMismatchedHostHeaderAndAuthoritySplitsAuthorityFromHostHeader`\n\n\nObserved behavior:\n\n- both rejection tests fail because Jetty returns 200 instead of 400\n- both exploitability tests pass, confirming that Jetty exposes different host values to different layers\n\n#### Project-Internal Evidence of Real Impact\n\nExamples:\n\n- `jetty-openid` uses `Request.getServerName(request)` to construct redirect URLs\n- `jetty-ee11-proxy` uses the raw `Host` header when building `Forwarded`\n\nThis indicates that the issue is not merely theoretical: Jetty’s own\necosystem already contains code paths where different host sources are\nused for different purposes.\n\n#### Affected Version\n\nConfirmed affected version:\n\n- 12.1.9-SNAPSHOT\n\nOther versions may also be affected if they share the same HTTP/2 /\nHTTP/3 request construction and compliance-validation logic. I have\nnot yet completed a historical version matrix and would recommend\nconfirming exact affected ranges from Jetty’s branch history.\n\n\n#### Suggested Fix\n\nRecommend adding HTTP/2 and HTTP/3 validation equivalent to the\nexisting HTTP/1.1 authority/Host consistency check:\n\n- if both :authority and regular Host are present\n    - normalize and compare them\n    - if they do not match, reject the request with 400 Bad Request\n    - route the failure through the existing MISMATCHED_AUTHORITY compliance mechanism\n\nAlso adding explicit HTTP/2 and HTTP/3 regression coverage for this case.\n\n#### Disclosure Status\n\n- not publicly disclosed\n- no public issue filed\n- shared only privately with the Jetty security contacts","format":"markdown","source":"ghsa"},{"lang":"es","text":"En Eclipse Jetty, para solicitudes HTTP/1, HTTP/2 y HTTP/3, no existe una verificación estricta de que la autoridad de la solicitud (host y puerto) coincida con lo proporcionado en el encabezado Host (si está presente).\n\nEsto no se aplicaba en RFC HTTP anteriores (por ejemplo, en RFC 2616), pero sí en los RFC más recientes (9110 y 9112).\n\nEsta falta de coincidencia puede causar una serie de problemas que pueden clasificarse como vulnerabilidades, tales como:\n\n  *  \n        \n      Construcciones de URI (por ejemplo, para redirecciones -- esto es típico en páginas de inicio de sesión)\n\n  *  \n        \n      Selección de host virtual\n\n  *  \n        \n      Proxy inverso\n\n  *  \n        \n      Registros engañosos\n\n  *  \n        \n      Etc.\n\nDado que los RFC más recientes requieren que la autoridad de la solicitud y el encabezado Host deben coincidir, Jetty debería aplicar este invariante.","source":"nvd"}],"published":"2026-07-14T08:51:30.527Z","modified":"2026-10-24T21:10:00.130Z","severity":{"scorer":"eclipse","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"eclipse","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"semver","introduced":"9.4.0","lastAffected":"9.4.60","status":"affected"},{"type":"semver","introduced":"10.0.0","lastAffected":"10.0.28","status":"affected"},{"type":"semver","introduced":"11.0.0","lastAffected":"11.0.28","status":"affected"},{"type":"semver","introduced":"12.0.0","lastAffected":"12.0.34","status":"affected"},{"type":"semver","introduced":"12.1.0","lastAffected":"12.1.8","status":"affected"}],"vendor":"Eclipse Foundation","product":"Eclipse Jetty","repo":"https://github.com/jetty/jetty.project","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"9.4.0.v20161208","status":"affected","lastAffected":"9.4.58.v20250814"}],"ecosystem":"Maven","package":"org.eclipse.jetty:jetty-server","purl":"pkg:maven/org.eclipse.jetty/jetty-server","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.0.0","status":"affected","lastAffected":"10.0.26"}],"ecosystem":"Maven","package":"org.eclipse.jetty:jetty-server","purl":"pkg:maven/org.eclipse.jetty/jetty-server","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"11.0.0","status":"affected","lastAffected":"11.0.26"}],"ecosystem":"Maven","package":"org.eclipse.jetty:jetty-server","purl":"pkg:maven/org.eclipse.jetty/jetty-server","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"12.0.0","status":"affected","fixed":"12.0.35"}],"ecosystem":"Maven","package":"org.eclipse.jetty:jetty-server","purl":"pkg:maven/org.eclipse.jetty/jetty-server","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"12.1.0","status":"affected","fixed":"12.1.9"}],"ecosystem":"Maven","package":"org.eclipse.jetty:jetty-server","purl":"pkg:maven/org.eclipse.jetty/jetty-server","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"9.4.0","fixed":"9.4.61"},{"status":"affected","introduced":"10.0.0","fixed":"10.0.29"},{"status":"affected","introduced":"11.0.0","fixed":"11.0.29"},{"status":"affected","introduced":"12.0.0","fixed":"12.0.35"},{"status":"affected","introduced":"12.1.0","fixed":"12.1.9"}],"vendor":"eclipse","product":"jetty","cpe":"cpe:2.3:a:eclipse:jetty:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://gitlab.eclipse.org/security/cve-assignment/-/work_items/99","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jetty/jetty.project/security/advisories/GHSA-7p3p-8qv8-m2vh","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6790","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jetty/jetty.project/issues/14870","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jetty/jetty.project/pull/14871","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jetty/jetty.project/pull/14897","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jetty/jetty.project/pull/14970","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jetty/jetty.project/commit/3e5a4daec196859b8886b6f67b1157dab47cdb6f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jetty/jetty.project/commit/67ba9e6b39661810123680d9c894e99a7940c73d","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jetty/jetty.project/commit/cbca3076f7c914a232e7a8b22fa95fbf7e67a6cc","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jetty/jetty.project","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/jetty/jetty.project/releases/tag/jetty-12.0.35","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jetty/jetty.project/releases/tag/jetty-12.1.9","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"eclipse","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-14T12:18:58.528Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-6790","url":"https://www.cve.org/CVERecord?id=CVE-2026-6790","licence":"CVE Terms of Use","modified":"2026-07-14T12:20:35.130Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7p3p-8qv8-m2vh","url":"https://github.com/advisories/GHSA-7p3p-8qv8-m2vh","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:11.096Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-6790","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6790","licence":"Public domain","modified":"2026-10-24T21:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:27.884Z","epss":{"score":0.00256,"percentile":0.18354,"date":"2026-12-01T12:00:22.000Z"}}