Vulnerabilities in pkg:maven/io.quarkiverse.openapi.generator/quarkus-openapi-generator

PACKAGE
Advisory Identifier: GHSA-fr8f-rwjx-f32v
Advisory Summary

CVE-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.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/io.quarkiverse.openapi.generator/quarkus-openapi-generator

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/io.quarkiverse.openapi.generator/quarkus-openapi-generator. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-fr8f-rwjx-f32v CVE-2026-42333 MODERATE quarkus-openapi-generator has overly broad path-parameter matching that sends authentication headers to unintended operations
GHSA-jx2w-vp7f-456q CVE-2026-40180 MODERATE quarkus-openapi-generator extension has Zip Slip Path Traversal in ApicurioCodegenWrapper class

CVE-2026-42333 at a Glance

CVE Identifier CVE-2026-42333
GHSA Identifier GHSA-fr8f-rwjx-f32v
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Quarkus openapi generator
Package Ecosystem Maven
Published Date
Last Updated

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.

io.quarkiverse.openapi.generator:quarkus-openapi-generator fixed: 2.16.0-lts
<dependency>
    <groupId>io.quarkiverse.openapi.generator</groupId>
    <artifactId>quarkus-openapi-generator</artifactId>
    <version>2.16.0-lts</version>
</dependency>
io.quarkiverse.openapi.generator:quarkus-openapi-generator fixed: 2.17.0
<dependency>
    <groupId>io.quarkiverse.openapi.generator</groupId>
    <artifactId>quarkus-openapi-generator</artifactId>
    <version>2.17.0</version>
</dependency>
Verify Direct and Transitive Dependencies

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

### 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' quarkus.http.port=8081 quarkus.openapi-generator.codegen.default-security-scheme=bearerAuth quarkus.openapi-generator.codegen.spec.repro_yaml.base-package=org.acme.repro quarkus.rest-client.repro_yaml.url=http://127.0.0.1:18080 quarkus.openapi-generator.repro_yaml.auth.bearerAuth.bearer-token=SECRET EOF cat > /tmp/qoag-poc/src/main/java/org/acme/TriggerResource.java <<'EOF' package org.acme; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; import jakarta.ws.rs.Produces; import jakarta.ws.rs.core.MediaType; import org.eclipse.microprofile.rest.client.inject.RestClient; @Path("/trigger") public class TriggerResource { @RestClient org.acme.repro.api.DefaultApi api; @GET @Produces(MediaType.TEXT_PLAIN) public String trigger() { api.getOwnerRepo("foo", "bar"); return "done"; } } EOF python - <<'PY' & from http.server import BaseHTTPRequestHandler, HTTPServer class H(BaseHTTPRequestHandler): def do_GET(self): print("PATH=" + self.path, flush=True) print("AUTH=" + str(self.headers.get("Authorization")), flush=True) self.send_response(200) self.end_headers() self.wfile.write(b"ok") def log_message(self, fmt, *args): pass HTTPServer(("127.0.0.1", 18080), H).serve_forever() PY cd /tmp/qoag-poc mvn -q package -DskipTests java -jar target/quarkus-app/quarkus-run.jar & sleep 8 curl -s http://127.0.0.1:8081/trigger # PATH=/repos/foo/bar # AUTH=Bearer SECRET ``` ### Impact Clients 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.

CVE-2026-42333 Affected Quarkus openapi generator Versions

2 component(s)
Fixed Versions:
2.16.0-lts2.17.0
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?
CVE-2026-42333 is a security vulnerability in Quarkus openapi generator involving quarkus-openapi-generator has overly broad path-parameter matching that sends authentication headers to unintended operations under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Quarkus openapi generator versions are affected?
Affected versions include releases prior to 2.16.0-lts, 2.17.0 across affected packages: io.quarkiverse.openapi.generator:quarkus-openapi-generator.
What version fixes CVE-2026-42333?
Upgrading to 2.16.0-lts, 2.17.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is quarkus-openapi-generator affected?
Yes, io.quarkiverse.openapi.generator:quarkus-openapi-generator is affected in releases prior to 2.16.0-lts, 2.17.0. Upgrade your dependency to 2.16.0-lts, 2.17.0 or later.
What CWE is associated with CVE-2026-42333?
CVE-2026-42333 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Maven dependencies for CVE-2026-42333?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.quarkiverse.openapi.generator'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}