Code injection in Tapir OpenAPI codegen via crafted property names
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
Tapir's tapir-openapi-codegen-core module, prior to 1.13.27, generates Scala source from untrusted OpenAPI documents. It interpolates object property names, parameter names and operation tags without proper escaping, which is CWE-94 code generation flaw. Crafted names can break out of identifier or string-literal contexts and inject arbitrary Scala code. The injected code runs when the generated code is compiled or endpoints are assembled, so an attacker who supplies a malicious OpenAPI document can run code at build time, and a running tapir server is not directly exploitable.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| softwaremill | tapir | before 1.13.27 | 1.13.27 | Patch available | CNA |
| — | com.softwaremill.sttp.tapir:tapir-openapi-codegen-core (Maven) | before 1.13.27 | 1.13.27 | Patch available | GHSA-gpcc-36pq-8qxr |
- tapir Vendorsoftwaremill Affected before 1.13.27 Fixed in 1.13.27 Patch available CNA
- com.softwaremill.sttp.tapir:tapir-openapi-codegen-core (Maven) Vendor— Affected before 1.13.27 Fixed in 1.13.27 Patch available GHSA-gpcc-36pq-8qxr
Remediation
Upgrade softwaremill tapir and com.softwaremill.sttp.tapir:tapir-openapi-codegen-core to version 1.13.27, which is the fixed version for both affected entries.
Written with Claude Haiku 5.5 from the sources below · 2026-11-19
- Fix · CNA tapir (softwaremill) Fixed in 1.13.27
- Fix · GHSA-gpcc-36pq-8qxr com.softwaremill.sttp.tapir:tapir-openapi-codegen-core (Maven) Fixed in 1.13.27 Advisory →
Timeline
- 2026-11-18 Threatist record created from CVE-2026-76090
- 2026-11-19 CISA SSVC decision points changed
- 2026-11-19 Alias added: GHSA-gpcc-36pq-8qxr
- 2026-11-19 Fix available: Maven/com.softwaremill.sttp.tapir:[email protected] · GHSA-gpcc-36pq-8qxr
- 2026-11-19 CVSS score added · GHSA-gpcc-36pq-8qxr
- 2026-11-19 Weakness changed · GHSA-gpcc-36pq-8qxr
- 2026-11-19 6 new references · GHSA-gpcc-36pq-8qxr
References
Other 5
- https://github.com/softwaremill/tapir/security/advisories/GHSA-gpcc-36pq-8qxr
- https://github.com/softwaremill/tapir/pull/5395
- https://github.com/softwaremill/tapir/commit/e015939b78df2de0fa3d3b8ed02961425e02145e
- https://github.com/softwaremill/tapir/releases/tag/v1.13.27
- https://github.com/softwaremill/tapir
More softwaremill vulnerabilities
- TI-2020-17268 Cross-site request forgery (CSRF) in com.softwaremill.akka-http-session:core_2.12 CVSS 3.1HIGH 8.8
- TI-2020-06297 Cross-site request forgery (CSRF) in com.softwaremill.akka-http-session:core_2.13 CVSS 3.1HIGH 8.8
Sources
- CVE-2026-76090 · CVE Program
- CVE-2026-76090 · NVD
- FIRST EPSS
- GHSA-gpcc-36pq-8qxr · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences