CVE-2026-76090 — tapir-openapi-codegen-core
Fix: softwaremill/tapir@e015939CVE-2026-76090 is a Code Injection vulnerability in com.softwaremill.sttp.tapir:tapir-openapi-codegen-core. A fix is available for com.softwaremill.sttp.tapir:tapir-openapi-codegen-core — see the affected versions and patch details below.
Tapir: Construction/decode RCE via property name -> raw case-class field (tapir-openapi-codegen)
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
com.softwaremill.sttp.tapir:tapir-openapi-codegen-coreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
The OpenAPI code generator (tapir-openapi-codegen-core) builds Scala source by string templating and emitted several names/values from the (untrusted) OpenAPI document without escaping or validation, allowing injection of arbitrary Scala that runs at generated-code compile time and/or endpoint-assembly time (build/codegen-time RCE from an attacker-controlled spec).
This advisory covers the full class of sinks, all sharing one root cause and one fix (PR #5395, commit e015939b7): object property names (-> case-class fields), query/header/path parameter names (-> endpoint input DSL), and operation tags (-> .tags(List(...))). The fix routes identifier-position names through validation/quoting and string-literal values through JavaEscape.escapeString.
Consolidates the separately-reported query-param (GHSA-h3vr-jggp-jw5v), header-param (GHSA-3pjr-m3pf-r66v) and tag (GHSA-jc99-w66r-pcx5) sinks, which are the same issue.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | com.softwaremill.sttp.tapir:tapir-openapi-codegen-core | all versions | 1.13.27com.softwaremill.sttp.tapir:tapir-openapi-codegen-core:1.13.27 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for com.softwaremill.sttp.tapir:tapir-openapi-codegen-core, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update com.softwaremill.sttp.tapir:tapir-openapi-codegen-core to 1.13.27 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-76090 is resolved across your whole dependency graph.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
Frequently Asked Questions
Is CVE-2026-76090 in your dependencies?
Find it across Maven, including transitive dependencies.