{"answers":{"affected":"2 open source packages ship an affected version, including io.quarkiverse.openapi.generator:quarkus-openapi-generator. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40180 exists.","fix":"Upgrade io.quarkiverse.openapi.generator:quarkus-openapi-generator to 2.16.0 or later.","what":"CVE-2026-40180 is a high-severity path traversal vulnerability in quarkiverse quarkus-openapi-generator, published on 10 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40180 and fix it if it is affected.\n\nWhat it is: CVE-2026-40180 is a high-severity path traversal vulnerability in quarkiverse quarkus-openapi-generator, published on 10 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40180 exists.\n\nAffected packages and fixed versions:\n- io.quarkiverse.openapi.generator:quarkus-openapi-generator (Maven): affected all versions; fixed in 2.16.0\n- io.quarkiverse.openapi.generator:quarkus-openapi-generator (Maven): affected all versions; fixed in 2.16.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40180/ (Markdown: https://insights.sbomify.com/CVE-2026-40180/index.md)","id":"CVE-2026-40180","markdown":"https://insights.sbomify.com/CVE-2026-40180/index.md","name":"CVE-2026-40180","record":{"aliases":["GHSA-jx2w-vp7f-456q"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Quarkus OpenAPI Generator","requires_auth":"none","summary":"Attackers can write files outside the target directory via malicious ZIP archives, potentially leading to code execution or data modification.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"quarkus_openapi_generator","vendor":"quarkiverse"}],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Quarkus OpenAPI Generator is Quarkus' extensions for generation of Rest Clients and server stubs generation. Prior to 2.16.0 and 2.15.0-lts, the unzip() method in ApicurioCodegenWrapper.java extracts ZIP entries without validating that the resolved file path stays within the intended output directory. At line 101, the destination is constructed as new File(toOutputDir, entry.getName()) and the content is written immediately. A malicious ZIP archive containing entries with path traversal sequences (e.g., ../../malicious.java) would write files outside the target directory. This vulnerability is fixed in 2.16.0 and 2.15.0-lts.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Zip Slip Path Traversal in quarkus-openapi-generator ApicurioCodegenWrapper class","id":"CVE-2026-40180","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation","id":"CVE-2026-40181"},"packages":[{"ecosystem":"Maven","fixed":["2.16.0"],"introduced":["0"],"last_affected":[],"package":"io.quarkiverse.openapi.generator:quarkus-openapi-generator","purl":null,"source":"GHSA-jx2w-vp7f-456q"},{"ecosystem":"Maven","fixed":["2.16.0"],"introduced":["0"],"last_affected":[],"package":"io.quarkiverse.openapi.generator:quarkus-openapi-generator","purl":"pkg:maven/io.quarkiverse.openapi.generator/quarkus-openapi-generator","source":"GHSA-jx2w-vp7f-456q"}],"prev":{"headline":"Prometheus: Stored XSS via metric names and label values in web UI tooltips and metrics explorer","id":"CVE-2026-40179"},"products":["quarkus-openapi-generator"],"published":"2026-04-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-13","vendors":["quarkiverse"]},"summary":"Attackers can write files outside the target directory via malicious ZIP archives, potentially leading to code execution or data modification.","url":"https://insights.sbomify.com/CVE-2026-40180/"}