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.
Severity (CVSS)
| Base score | 8.4 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-94 — CWE-94: Improper Control of Generation of Code
- CWE-95 — CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code
- CWE-116 — CWE-116: Improper Encoding or Escaping of Output
Affected products
| Vendor | Product | Versions |
|---|---|---|
| softwaremill | tapir | < 1.13.27 [affected] |
References
- https://github.com/softwaremill/tapir/security/advisories/GHSA-gpcc-36pq-8qxr (x_refsource_CONFIRM)
- https://github.com/softwaremill/tapir/pull/5395 (x_refsource_MISC)
- https://github.com/softwaremill/tapir/commit/e015939b78df2de0fa3d3b8ed02961425e02145e (x_refsource_MISC)
- https://github.com/softwaremill/tapir/releases/tag/v1.13.27 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 19 Nov 2026 08:05 UTC.