Skip to content

@RequestHeader bound to URL query string in quarkus-spring-web

High
cescoffier published GHSA-vv4c-mhvm-c6gv Sep 1, 2026

Package

maven io.quarkus:quarkus-spring-web (Maven)

Affected versions

<3.39.2

Patched versions

4.0.0, 3.40.0, 3.39.2, 3.33.4, 3.27.6

Description

Impact

Extension quarkus-spring-web on the quarkus-rest (RESTEasy Reactive) stack — the current default. The classic RESTEasy stack is not affected (it delegates to the upstream SpringResourceBuilder, which honours header semantics).
Introduced in commit c677eeb (2021-10-29, PR #19819), first released in 2.5.0. The affected line is byte-identical on every branch from 3.20 through 3.38 and on main; I could not find any release in which it is fixed.
Directly verified in source at 3.37.0, 3.37.4 and 3.38.0, with live PoCs run on 3.38.0.
Novel: no CVE, GHSA, or issue describes this; unfixed everywhere.

extensions/spring-web/resteasy-reactive/deployment/…/SpringWebResteasyReactiveProcessor.java (lines ~285–299):

if (annotationName.equals(REQUEST_PARAM)) {
    jaxRsAnnotation = REST_QUERY_PARAM;      // @RequestParam   -> query    (correct)
} else if (annotationName.equals(REQUEST_HEADER)) {
    jaxRsAnnotation = REST_QUERY_PARAM;      // @RequestHeader  -> query    <== BUG (should be REST_HEADER_PARAM)
} else if (annotationName.equals(COOKIE_VALUE)) {
    jaxRsAnnotation = REST_COOKIE_PARAM;     // @CookieValue    -> cookie   (correct)
} else {
    jaxRsAnnotation = REST_MATRIX_PARAM;     // @MatrixVariable -> matrix   (correct)
}

@RequestHeader is the only mis-mapped annotation — it is given the same mapping as @RequestParam (a duplicate of the line above it, the signature of a copy-paste). The correct target, REST_HEADER_PARAM (@RestHeader → ParameterType.HEADER), already exists in RESTEasy Reactive (ResteasyReactiveDotNames.java:141), predates the buggy commit, and is used/tested elsewhere — it is not even imported into this processor.

Patches

Has the problem been patched? What versions should users upgrade to?

Workarounds

No known workarounds.

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

CVE ID

CVE-2026-19651

Weaknesses

No CWEs

Credits