VulnWatch by ve1ve2
high 8.4 EPSS 0.14%

GHSA-gpcc-36pq-8qxr / CVE-2026-76090: Tapir: Construction/decode RCE via property name -> raw case-class field (tapir-openapi-codegen)

Source:
GitHub Security Advisories
Published:
Fetched:
Updated:
Affects:
com.softwaremill.sttp.tapir:tapir-openapi-codegen-core

https://github.com/advisories/GHSA-gpcc-36pq-8qxr ↗

ghsamavenCWE-94CWE-95CWE-116

Tapir: Construction/decode RCE via property name -> raw case-class field (tapir-openapi-codegen) 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. Affected packages: maven:com.softwaremill.sttp.tapir:tapir-openapi-codegen-core Patched: com.softwaremill.sttp.tapir:tapir-openapi-codegen-core 1.13.27

Linked vulnerabilities (5)

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

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

CWE: CWE-94, CWE-95, CWE-116Aliases: CVE-2026-76090, GHSA-h3vr-jggp-jw5v, GHSA-3pjr-m3pf-r66v, GHSA-jc99-w66r-pcx5
CVE-2026-76090 high 8.4 EPSS 0.14% (p3) NVDCVE.orgGHSAGHSAGHSAGHSA
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

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

CWE: CWE-94, CWE-95, CWE-116Aliases: GHSA-gpcc-36pq-8qxr, GHSA-h3vr-jggp-jw5v, GHSA-3pjr-m3pf-r66v, GHSA-jc99-w66r-pcx5NVD: Received

Also reported by (1)