HIGH · CVSS 4.0 EPSS 0.2% · 6th percentile CWE-116CWE-94CWE-95

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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 vectorLocal
Attack complexityLow
Attack requirementsNone
Privileges requiredNone
User interactionActive
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
The OpenAPI code generator (tapir-openapi-codegen-core) builds Scala source by string templating and emitted several names/values from the (untrusted) OpenAPI document without escaping or validation, allowing injection of arbitrary Scala that runs at generated-code compile time and/or endpoint-assembly time (build/codegen-time RCE from an attacker-controlled spec). This advisory covers the full class of sinks, all sharing one root cause and one fix (PR #5395, commit e015939b7): object property names (-> case-class fields), query/header/path parameter names (-> endpoint input DSL), and operation tags (-> .tags(List(...))). The fix routes identifier-position names through validation/quoting and string-literal values through JavaEscape.escapeString. Consolidates the separately-reported query-param (GHSA-h3vr-jggp-jw5v), header-param (GHSA-3pjr-m3pf-r66v) and tag (GHSA-jc99-w66r-pcx5) sinks, which are the same issue.

References

Source records: GHSA-gpcc-36pq-8qxr (OSV.dev) · EPSS by FIRST, 2026-11-26.