🛡️ CVE-2026-42333 — quarkus-openapi-generator

⚪ Unknown ✅ No Known Exploit CWE-200 NVD
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

quarkus-openapi-generator has overly broad path-parameter matching that sends authentication headers to unintended operations

Summary

The generated authentication filter matches OpenAPI path templates too broadly when deciding whether to attach credentials. A security scheme configured for one operation can therefore be applied to a different same-method operation whose path only partially resembles the protected template, causing bearer tokens, API keys, or basic credentials to be sent to unintended endpoints.

Details

The runtime authentication layer selects credentials by comparing the outgoing request path and method against the set of protected OpenAPI operations. Path-template matching treats {param} placeholders as .*, which incorrectly allows a single path parameter to consume /.

As a result, a protected path such as /repos/{ref} also matches /repos/foo/bar, even though /repos/{owner}/{repo} is a different operation. When a client invokes the unprotected operation, the authentication filter still concludes that the protected operation matched and attaches its credentials.

This affects authentication providers that rely on the shared path-matching logic, including bearer, OAuth, API-key, and basic authentication. The issue is reachable through normal generated-client usage and does not require modifying generated code.

PoC

```bash

mkdir -p /tmp/qoag-poc/src/main/java/org/acme

mkdir -p /tmp/qoag-poc/src/main/resources

mkdir -p /tmp/qoag-poc/src/main/openapi

cat > /tmp/qoag-poc/pom.xml <<'EOF'

<project xmlns="http://maven.apache.org/POM/4.0.0"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>org.acme</groupId>

<artifactId>qoag-poc</artifactId>

<version>1.0.0</version>

<properties>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<maven.compiler.release>17</maven.compiler.release>

<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>

<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>

<quarkus.platform.version>3.34.3</quarkus.platform.version>

<qoag.version>2.16.0</qoag.version>

</properties>

<dependencyManagement>

<dependencies>

<dependency>

<groupId>${quarkus.platform.group-id}</groupId>

<artifactId>${quarkus.platform.artifact-id}</artifactId>

<version>${quarkus.platform.version}</version>

<type>pom</type>

<scope>import</scope>

</dependency>

</dependencies>

</dependencyManagement>

<dependencies>

<dependency>

<groupId>io.quarkiverse.openapi.generator</groupId>

<artifactId>quarkus-openapi-generator</artifactId>

<version>${qoag.version}</version>

</dependency>

<dependency>

<groupId>io.quarkus</groupId>

<artifactId>quarkus-rest</artifactId>

</dependency>

<dependency>

<groupId>io.quarkus</groupId>

<artifactId>quarkus-rest-client-jackson</artifactId>

</dependency>

</dependencies>

<build>

<plugins>

<plugin>

<groupId>io.quarkus</groupId>

<artifactId>quarkus-maven-plugin</artifactId>

<version>${quarkus.platform.version}</version>

<extensions>true</extensions>

<executions>

<execution>

<goals>

<goal>build</goal>

<goal>generate-code</goal>

<goal>generate-code-tests</goal>

</goals>

</execution>

</executions>

</plugin>

<plugin>

<artifactId>maven-compiler-plugin</artifactId>

<version>3.14.0</version>

<configuration>

<parameters>true</parameters>

</configuration>

</plugin>

</plugins>

</build>

</project>

EOF

cat > /tmp/qoag-poc/src/main/openapi/repro.yaml <<'EOF'

openapi: 3.0.3

info:

title: repro

version: 1.0.0

paths:

/repos/{ref}:

get:

operationId: getRef

parameters:

  • in: path

name: ref

required: true

schema:

type: string

security:

  • bearerAuth: []

responses:

"200":

description: ok

content:

text/plain:

schema:

type: string

/repos/{owner}/{repo}:

get:

operationId: getOwnerRepo

parameters:

  • in: path

name: owner

required: true

schema:

type: string

  • in: path

name: repo

required: true

schema:

type: string

responses:

"200":

description: ok

content:

text/plain:

schema:

type: string

components:

securitySchemes:

bearerAuth:

type: http

scheme: bearer

EOF

cat > /tmp/qoag-poc/src/main/resources/application.properties <<'EOF'

quar

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality low, integrity low, availability none.

Weakness class

CVE-2026-42333 is classified as CWE-200: Exposure of Sensitive Information. Information that should stay internal is disclosed to someone who is not authorised to see it.

Affected software

CVE-2026-42333 is recorded against 2 packages.

  • io.quarkiverse.openapi.generator:quarkus-openapi-generator (from 2.16.0 up to 2.17.0)
  • unknown

Timeline and source

Published on 4 May 2026 and last revised on 13 May 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Package)
github.com (Web)
github.com (Web)
github.com (Web)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
CWE CWE-200
Public Exploit ✅ No
Source NVD
Published 2026-05-04
Updated 2026-08-12
Modified 2026-05-13
Fix URL N/A

Affected Packages

Software From version Fixed in
io.quarkiverse.openapi.generator:quarkus-openapi-generator 2.16.0 2.17.0
unknown

Similar Threats

Free Vulnerability Check

Is your site affected by CVE-2026-42333?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2026-42333 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.