Tapir: Construction/decode RCE via property name -> raw case-class field (tapir-openapi-codegen)
- CVE-2026-76090
- GHSA-gpcc-36pq-8qxr
- EUVD-2026-129177
Description
Tapir is a Scala library for describing HTTP APIs and exposing, consuming, and documenting them using open standards. Prior to 1.13.27, tapir-openapi-codegen-core generates Scala source from untrusted OpenAPI documents by interpolating object property names, query, header, and path parameter names, and operation tags without context-appropriate validation or escaping. Crafted names or values can break out of generated identifier or string-literal contexts and inject arbitrary Scala that executes when generated code is compiled or endpoints are assembled. This is a code-generation and build-time issue and does not make a running tapir server directly exploitable. This issue is fixed in version 1.13.27.
Text from the CVE.org record.
Recommendation
com.softwaremill.sttp.tapir:tapir-openapi-codegen-core
- If you run a version before 1.13.27update to 1.13.27 or latercom.softwaremill.sttp.tapir:tapir-openapi-codegen-core 1.13.27 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
softwaremill tapir
Affected versions Fixed in < 1.13.27 none stated com.softwaremill.sttp.tapir:tapir-openapi-codegen-coreMaven
Affected versions Fixed in before 1.13.27 1.13.27
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.