All vulnerabilities

Maven

CVE-2026-76090

Tapir: Construction/decode RCE via property name -> raw case-class field (tapir-openapi-codegen)

Severity
High
Published
19 Nov 2026
Last changed
19 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.13.27
Exploit chance
0.1% in the next 30 daysHigher than 3% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Improper output encoding (CWE-116)Code injection (CWE-94)Eval injection (CWE-95)
Also known as
GHSA-gpcc-36pq-8qxr
Sources
OSV.dev and GitHub

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.

From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
com.softwaremill.sttp.tapir:tapir-openapi-codegen-coreMaven · osv:Maven:com.softwaremill.sttp.tapir:tapir-openapi-codegen-core
  • Every version before 1.13.27

About com.softwaremill.sttp.tapir:tapir-openapi-codegen-core

This is the only vulnerability in com.softwaremill.sttp.tapir:tapir-openapi-codegen-core in our list.

References