CVE-2026-76090 Tapir: Construction/decode RCE via property name -> raw case-class field (tapir-openapi-codegen)
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| com.softwaremill.sttp.tapir/tapir-openapi-codegen-core(Maven) | < 1.13.27 | 1.13.27 | Fixed |
| softwaremill tapir | = < 1.13.27 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| softwaremill tapir | = < 1.13.27 | No fix listed |
| com.softwaremill.sttp.tapir/tapir-openapi-codegen-core(Maven) | < 1.13.27 | 1.13.27 |
References
- https://github.com/softwaremill/tapir/security/advisories/GHSA-gpcc-36pq-8qxr vendor-advisory
- https://github.com/softwaremill/tapir/pull/5395 patch
- https://github.com/softwaremill/tapir/commit/e015939b78df2de0fa3d3b8ed02961425e02145e patch
- https://github.com/softwaremill/tapir/releases/tag/v1.13.27
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product
- ENISA EUVD EUVD-2026-129177 third-party-advisory