Read the docs

Code injection in Tapir OpenAPI codegen via crafted property names

Priority LOW 38CWE-116Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00199 5th percentileScored 2026-11-30
Fix Fixed tapir (softwaremill): 1.13.27com.softwaremill.sttp.tapir:tapir-openapi-codegen-core (Maven): 1.13.27

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

VendorProductAffected versionsFixed inStatusSource
softwaremilltapirbefore 1.13.271.13.27Patch availableCNA
—com.softwaremill.sttp.tapir:tapir-openapi-codegen-core (Maven)before 1.13.271.13.27Patch availableGHSA-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

  1. 2026-11-18 Threatist record created from CVE-2026-76090
  2. 2026-11-19 CISA SSVC decision points changed
  3. 2026-11-19 Alias added: GHSA-gpcc-36pq-8qxr
  4. 2026-11-19 Fix available: Maven/com.softwaremill.sttp.tapir:[email protected] · GHSA-gpcc-36pq-8qxr
  5. 2026-11-19 CVSS score added · GHSA-gpcc-36pq-8qxr
  6. 2026-11-19 Weakness changed · GHSA-gpcc-36pq-8qxr
  7. 2026-11-19 6 new references · GHSA-gpcc-36pq-8qxr

References

  • 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