CVE-2026-42333: Quarkus openapi generator Quarkus-openapi-generator Has Overly Broad Path-parameter Vulnerability
MODERATECVE-2026-42333 is a MODERATE quarkus-openapi-generator has overly broad path-parameter vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Quarkus openapi generator libraries in the Maven ecosystem. The issue involves quarkus-openapi-generator has overly broad path-parameter matching that sends authentication headers to unintended operations. Remediation is available by upgrading affected packages to version 2.16.0-lts, 2.17.0.
CVE-2026-42333 at a Glance
How to Fix CVE-2026-42333
To remediate this vulnerability, upgrade all affected Quarkus openapi generator dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>io.quarkiverse.openapi.generator</groupId>
<artifactId>quarkus-openapi-generator</artifactId>
<version>2.16.0-lts</version>
</dependency>
<dependency>
<groupId>io.quarkiverse.openapi.generator</groupId>
<artifactId>quarkus-openapi-generator</artifactId>
<version>2.17.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=io.quarkiverse.openapi.generator
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2026-42333, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=io.quarkiverse.openapi.generator
Analyze the terminal output to locate any version of Quarkus openapi generator in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.16.0-lts), your application is affected.
Note: The mvn dependency:tree -Dincludes=io.quarkiverse.openapi.generator command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Quarkus openapi generator, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-42333 Affected Quarkus openapi generator Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.quarkiverse.openapi.generator:quarkus-openapi-generator
|
Maven |
< 2.16.0-lts
|
2.16.0-lts
|
|
io.quarkiverse.openapi.generator:quarkus-openapi-generator
|
Maven |
≥ 2.16.0
< 2.17.0
All 1 versions
2.16.0
|
2.17.0
|
References
Frequently Asked Questions
What is CVE-2026-42333?
Which Quarkus openapi generator versions are affected?
What version fixes CVE-2026-42333?
Is quarkus-openapi-generator affected?
What CWE is associated with CVE-2026-42333?
How can I check Maven dependencies for CVE-2026-42333?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fr8f-rwjx-f32v",
"modified" : "2026-05-13T13:41:41Z",
"published" : "2026-05-04T21:15:55Z",
"aliases" : [ "CVE-2026-42333" ],
"summary" : "quarkus-openapi-generator has overly broad path-parameter matching that sends authentication headers to unintended operations",
"details" : "### Summary\n\nThe 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.\n\n### Details\n\nThe 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 `/`.\n\nAs 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.\n\nThis 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.\n\n### PoC\n\n```bash\nmkdir -p /tmp/qoag-poc/src/main/java/org/acme\nmkdir -p /tmp/qoag-poc/src/main/resources\nmkdir -p /tmp/qoag-poc/src/main/openapi\n\ncat > /tmp/qoag-poc/pom.xml <<'EOF'\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd\">\n <modelVersion>4.0.0</modelVersion>\n <groupId>org.acme</groupId>\n <artifactId>qoag-poc</artifactId>\n <version>1.0.0</version>\n\n <properties>\n <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\n <maven.compiler.release>17</maven.compiler.release>\n <quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>\n <quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>\n <quarkus.platform.version>3.34.3</quarkus.platform.version>\n <qoag.version>2.16.0</qoag.version>\n </properties>\n\n <dependencyManagement>\n <dependencies>\n <dependency>\n <groupId>${quarkus.platform.group-id}</groupId>\n <artifactId>${quarkus.platform.artifact-id}</artifactId>\n <version>${quarkus.platform.version}</version>\n <type>pom</type>\n <scope>import</scope>\n </dependency>\n </dependencies>\n </dependencyManagement>\n\n <dependencies>\n <dependency>\n <groupId>io.quarkiverse.openapi.generator</groupId>\n <artifactId>quarkus-openapi-generator</artifactId>\n <version>${qoag.version}</version>\n </dependency>\n <dependency>\n <groupId>io.quarkus</groupId>\n <artifactId>quarkus-rest</artifactId>\n </dependency>\n <dependency>\n <groupId>io.quarkus</groupId>\n <artifactId>quarkus-rest-client-jackson</artifactId>\n </dependency>\n </dependencies>\n\n <build>\n <plugins>\n <plugin>\n <groupId>io.quarkus</groupId>\n <artifactId>quarkus-maven-plugin</artifactId>\n <version>${quarkus.platform.version}</version>\n <extensions>true</extensions>\n <executions>\n <execution>\n <goals>\n <goal>build</goal>\n <goal>generate-code</goal>\n <goal>generate-code-tests</goal>\n </goals>\n </execution>\n </executions>\n </plugin>\n <plugin>\n <artifactId>maven-compiler-plugin</artifactId>\n <version>3.14.0</version>\n <configuration>\n <parameters>true</parameters>\n </configuration>\n </plugin>\n </plugins>\n </build>\n</project>\nEOF\n\ncat > /tmp/qoag-poc/src/main/openapi/repro.yaml <<'EOF'\nopenapi: 3.0.3\ninfo:\n title: repro\n version: 1.0.0\n\npaths:\n /repos/{ref}:\n get:\n operationId: getRef\n parameters:\n - in: path\n name: ref\n required: true\n schema:\n type: string\n security:\n - bearerAuth: []\n responses:\n \"200\":\n description: ok\n content:\n text/plain:\n schema:\n type: string\n\n /repos/{owner}/{repo}:\n get:\n operationId: getOwnerRepo\n parameters:\n - in: path\n name: owner\n required: true\n schema:\n type: string\n - in: path\n name: repo\n required: true\n schema:\n type: string\n responses:\n \"200\":\n description: ok\n content:\n text/plain:\n schema:\n type: string\n\ncomponents:\n securitySchemes:\n bearerAuth:\n type: http\n scheme: bearer\nEOF\n\ncat > /tmp/qoag-poc/src/main/resources/application.properties <<'EOF'\nquarkus.http.port=8081\nquarkus.openapi-generator.codegen.default-security-scheme=bearerAuth\nquarkus.openapi-generator.codegen.spec.repro_yaml.base-package=org.acme.repro\nquarkus.rest-client.repro_yaml.url=http://127.0.0.1:18080\nquarkus.openapi-generator.repro_yaml.auth.bearerAuth.bearer-token=SECRET\nEOF\n\ncat > /tmp/qoag-poc/src/main/java/org/acme/TriggerResource.java <<'EOF'\npackage org.acme;\n\nimport jakarta.ws.rs.GET;\nimport jakarta.ws.rs.Path;\nimport jakarta.ws.rs.Produces;\nimport jakarta.ws.rs.core.MediaType;\nimport org.eclipse.microprofile.rest.client.inject.RestClient;\n\n@Path(\"/trigger\")\npublic class TriggerResource {\n @RestClient\n org.acme.repro.api.DefaultApi api;\n\n @GET\n @Produces(MediaType.TEXT_PLAIN)\n public String trigger() {\n api.getOwnerRepo(\"foo\", \"bar\");\n return \"done\";\n }\n}\nEOF\n\npython - <<'PY' &\nfrom http.server import BaseHTTPRequestHandler, HTTPServer\nclass H(BaseHTTPRequestHandler):\n def do_GET(self):\n print(\"PATH=\" + self.path, flush=True)\n print(\"AUTH=\" + str(self.headers.get(\"Authorization\")), flush=True)\n self.send_response(200)\n self.end_headers()\n self.wfile.write(b\"ok\")\n def log_message(self, fmt, *args):\n pass\nHTTPServer((\"127.0.0.1\", 18080), H).serve_forever()\nPY\n\ncd /tmp/qoag-poc\nmvn -q package -DskipTests\njava -jar target/quarkus-app/quarkus-run.jar &\nsleep 8\ncurl -s http://127.0.0.1:8081/trigger\n\n# PATH=/repos/foo/bar\n# AUTH=Bearer SECRET\n```\n\n### Impact\n\nClients generated from an OpenAPI specification can send authentication credentials to endpoints that were not intended to receive them. In practice, this can disclose bearer tokens, API keys, or basic credentials to lower-trust routes on the same service, cause public operations to be invoked with privileged credentials, and blur the intended security boundary between protected and unprotected operations.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "io.quarkiverse.openapi.generator:quarkus-openapi-generator"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.16.0-lts"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.quarkiverse.openapi.generator:quarkus-openapi-generator"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.16.0"
}, {
"fixed" : "2.17.0"
} ]
} ],
"versions" : [ "2.16.0" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/quarkiverse/quarkus-openapi-generator/security/advisories/GHSA-fr8f-rwjx-f32v"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42333"
}, {
"type" : "WEB",
"url" : "https://github.com/quarkiverse/quarkus-openapi-generator/pull/1586"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/quarkiverse/quarkus-openapi-generator"
}, {
"type" : "WEB",
"url" : "https://github.com/quarkiverse/quarkus-openapi-generator/releases/tag/2.11.1-lts"
}, {
"type" : "WEB",
"url" : "https://github.com/quarkiverse/quarkus-openapi-generator/releases/tag/2.16.0-lts"
}, {
"type" : "WEB",
"url" : "https://github.com/quarkiverse/quarkus-openapi-generator/releases/tag/2.17.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-04T21:15:55Z",
"nvd_published_at" : "2026-05-09T20:16:28Z"
}
}