REDHAT-BUG-2588743: Medium severity maven/io.netty/netty-codec-http vulnerability

Published Dec 2, 2026
·
Updated

Netty's CorsHandler does not add a Vary: Origin header to responses when the request carries the literal Origin value "null" and the opt-in null-origin configuration is enabled (CorsConfigBuilder.allowNullOrigin()). The other origin-matching branches, which echo a specific origin or an any-origin value with credentials, do add Vary. In the null-origin branch the handler sets Access-Control-Allow-Origin: null and returns without it. This applies to both simple responses and preflight responses.

Because the response differs by Origin for the same URL but does not say so, a shared cache (CDN, reverse proxy or forward proxy) that honors Vary may store the null-origin response keyed only by URL. It can then serve that response to requests from other origins. An attacker can trigger this by sending a request with Origin: null to a cacheable URL, which a sandboxed document or any raw HTTP client can do.

The impact is cache poisoning of CORS headers. The legitimate origin may receive a response with a mismatched Access-Control-Allow-Origin value, so the browser blocks its requests. If the response body varies by session or user and the deployment has no other cache isolation, one requester's cached response may be disclosed to a different origin or user.

Affected are users of netty-codec-http that use CorsHandler with a CorsConfig that enables allowNullOrigin and place the service behind a shared cache that honors Vary. Versions up to and including 4.1.138.Final, and 4.2.0.Final through 4.2.18.Final, are affected. The issue is fixed in 4.1.139.Final and 4.2.19.Final.

Affected versions: >= 4.2.0.Final, <= 4.2.18.Final; <=4.1.138.Final Patched versions: 4.2.19.Final; 4.1.139.Final CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N (5.3) CWE: CWE-346 Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-x9f7-rg73-4rp6 CVE requested by the Netty Project via PSIRTSUPT-32166.

Affected Software

1 affected component
maven/io.netty/netty-codec-http<=4.1.138.Final, >=4.2.0.Final<=4.2.18.Final

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade netty/netty-codec-http to a version that resolves this vulnerability.

    Fixed in 4.1.139.Final
  2. Upgrade

    Upgrade netty/netty-codec-http to a version that resolves this vulnerability.

    Fixed in 4.2.19.Final

Event History

Dec 2, 2026
Data Sourced
via Red Hat·04:50 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments are exposed when Netty CorsHandler is configured with CorsConfigBuilder.allowNullOrigin() and sits behind a shared cache such as a CDN, reverse proxy, or forward proxy. The affected response must also be cacheable and lack other cache isolation.

2

What does an attacker need to do to trigger the problem?

An attacker needs to cause a request with the literal Origin: null value to reach a cacheable URL. This can be sent by a sandboxed document or by any raw HTTP client, allowing the cache to store a response keyed only by URL rather than by Origin.

3

How can I determine whether my deployment is affected?

Check whether allowNullOrigin() is enabled in the CorsHandler configuration. For a request with Origin: null, inspect both simple and preflight responses: an affected response contains Access-Control-Allow-Origin: null but does not include Vary: Origin.

4

What is the likely operational impact of exploitation?

Other origins can receive a cached response with Access-Control-Allow-Origin: null, causing browsers to block legitimate cross-origin requests. Where response bodies vary by session or user and no other cache isolation exists, the shared cache can also serve a response intended for one requester to another.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203