{"id":"CVE-2026-76090","aliases":["CVE-2026-76090","GHSA-gpcc-36pq-8qxr"],"related":[],"kind":"vulnerability","state":"published","title":"Tapir: Construction/decode RCE via property name -> raw case-class field (tapir-openapi-codegen)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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).\n\nThis 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.\n\nConsolidates 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.","format":"markdown","source":"ghsa"}],"published":"2026-11-18T20:05:47.597Z","modified":"2026-11-19T20:45:04.332Z","severity":{"scorer":"GitHub_M","scheme":"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","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"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","score":8.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"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","rating":"HIGH"}],"cwes":["CWE-94","CWE-95","CWE-116"],"affected":[{"ranges":[{"version":"< 1.13.27","status":"affected"}],"vendor":"softwaremill","product":"tapir","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.13.27"}],"ecosystem":"Maven","package":"com.softwaremill.sttp.tapir:tapir-openapi-codegen-core","purl":"pkg:maven/com.softwaremill.sttp.tapir/tapir-openapi-codegen-core","source":"ghsa"}],"references":[{"url":"https://github.com/softwaremill/tapir/security/advisories/GHSA-gpcc-36pq-8qxr","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/softwaremill/tapir/pull/5395","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/softwaremill/tapir/commit/e015939b78df2de0fa3d3b8ed02961425e02145e","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/softwaremill/tapir/releases/tag/v1.13.27","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76090","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/softwaremill/tapir","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-19T14:57:05.663Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-76090","url":"https://www.cve.org/CVERecord?id=CVE-2026-76090","licence":"CVE Terms of Use","modified":"2026-11-19T14:57:21.515Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gpcc-36pq-8qxr","url":"https://github.com/advisories/GHSA-gpcc-36pq-8qxr","licence":"CC-BY-4.0","modified":"2026-11-19T20:45:04.332Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-76090","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76090","licence":"Public domain","modified":"2026-11-19T15:17:42.290Z"}],"updatedAt":"2026-11-25T22:59:51.901Z","epss":{"score":0.00199,"percentile":0.05574,"date":"2026-11-30T12:00:22.000Z"}}