CVE-2026-142451

Description

A flaw was found in netty-codec-http. When handling HTTP requests with a null origin value, the component fails to include the Vary: Origin response header. An unauthenticated remote attacker can exploit this vulnerability by submitting requests with a null origin to cacheable web addresses, causing Cross-Origin Resource Sharing (CORS) header cache poisoning. This flaw may result in shared web caches serving incorrect security headers to subsequent visitors, causing legitimate requests to be blocked or potentially disclosing cached user data.

Statement

This flaw is rated as Moderate severity for Red Hat products because exploitation requires an opt-in, non-default CORS configuration (allowNullOrigin()) as well as a deployment behind a shared HTTP cache or reverse proxy honoring Vary headers. By default, Netty applications do not enable null-origin processing, which severely restricts the attack surface. Although a remote attacker can issue requests with Origin: null to induce CORS response cache poisoning, the vulnerability is limited to cross-origin header caching errors rather than arbitrary code execution or direct compromise of the underlying system.

Mitigation

To mitigate this issue without updating software:

1. Disable the opt-in `allowNullOrigin` setting in the Netty `CorsConfig` configuration if null-origin requests are not explicitly required by your application.
2. Alternatively, configure upstream reverse proxies, web application firewalls, or intermediate cache servers to bypass caching for HTTP responses containing the `Access-Control-Allow-Origin: null` header or requests carrying `Origin: null`.

Caveat: Disabling null-origin support will cause browsers to block CORS requests originating from sandboxed iframes or local file schemes (`file://`).

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score5.3N/AN/A
Attack VectorNetworkN/AN/A
Attack ComplexityLowN/AN/A
Privileges RequiredNoneN/AN/A
User InteractionNoneN/AN/A
ScopeUnchangedN/AN/A
ConfidentialityNoneN/AN/A
Integrity ImpactLowN/AN/A
Availability ImpactNoneN/AN/A

Vector

Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Red Hat CVSS v3 Score Explanation

CVSS vector provided by the Netty Project in the CVE request (PSIRTSUPT-32166).

Understanding the Weakness (CWE)

Access Control,Other

Technical Impact: Gain Privileges or Assume Identity; Varies by Context

An attacker can access any functionality that is inadvertently accessible to the source.

Frequently Asked Questions

Want to get errata notifications? Sign up here.