CVE-2026-76090: Tapir: Construction/decode RCE via property name -> raw case-class field (tapir-openapi-codegen)
Published 2026-11-19 · Updated 2026-11-19 · Also known as GHSA-gpcc-36pq-8qxr
Summary
The tapir-openapi-codegen-core library fails to properly sanitize untrusted OpenAPI specification inputs, leading to arbitrary Scala code injection during the code generation process. Engineering teams using this tool for automated Scala code generation should update to version 1.13.27 immediately to prevent build-time remote code execution.
Who is affected
This vulnerability affects projects utilizing tapir-openapi-codegen-core to generate Scala source code from OpenAPI specifications. An attacker providing a malicious OpenAPI document can trigger remote code execution at build-time or endpoint-assembly time by injecting arbitrary Scala commands into case-class fields, parameter names, or operation tags.
Exploitability
The vulnerability requires user interaction to process a malicious OpenAPI specification, as indicated by the CVSS 4.0 UI:A vector. With an EPSS score of 0.001 and no entry in the CISA KEV database, there is currently no evidence of widespread active exploitation.
Remediation
- Upgrade com.softwaremill.sttp.tapir:tapir-openapi-codegen-core to version 1.13.27 or later.
- Validate and sanitize untrusted OpenAPI specification documents before passing them to the code generation pipeline.
How to check your project
- Check your project's build files (e.g., build.sbt or pom.xml) to identify dependencies on com.softwaremill.sttp.tapir:tapir-openapi-codegen-core.
- Run 'sbt dependencyTree' or 'mvn dependency:list' to verify if any version prior to 1.13.27 is included in your project's transitive dependency graph.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Maven | com.softwaremill.sttp.tapir:tapir-openapi-codegen-core |
>= 0, < 1.13.27 | 1.13.27 | - |
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
| Attack vector | Local |
|---|---|
| Attack complexity | Low |
| Attack requirements | None |
| Privileges required | None |
| User interaction | Active |
| Confidentiality (vulnerable system) | High |
| Integrity (vulnerable system) | High |
| Availability (vulnerable system) | High |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | None |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
What specifically triggers the remote code execution?
The RCE is triggered when the code generator processes untrusted OpenAPI documents containing malicious payloads in property names, parameter names, or operation tags, which are then written directly into generated Scala source files.
Is this a runtime vulnerability for my production API?
No, the vulnerability manifests primarily during the build or code-generation phase, leading to RCE within the environment responsible for compiling or assembling the generated code.
Does this CVE cover multiple previously reported issues?
Yes, this advisory consolidates multiple sink-specific reports (GHSA-h3vr-jggp-jw5v, GHSA-3pjr-m3pf-r66v, and GHSA-jc99-w66r-pcx5) as they share the same underlying root cause and remediation strategy.
Original advisory description
References
- WEB https://github.com/softwaremill/tapir/security/advisories/GHSA-gpcc-36pq-8qxr
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-76090
- WEB https://github.com/softwaremill/tapir/pull/5395
- WEB https://github.com/softwaremill/tapir/commit/e015939b78df2de0fa3d3b8ed02961425e02145e
- PACKAGE https://github.com/softwaremill/tapir
- WEB https://github.com/softwaremill/tapir/releases/tag/v1.13.27
Source records: GHSA-gpcc-36pq-8qxr (OSV.dev) · EPSS by FIRST, 2026-11-26.