GHSA-gpcc-36pq-8qxr

Suggest an improvement
Source
https://github.com/advisories/GHSA-gpcc-36pq-8qxr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-gpcc-36pq-8qxr/GHSA-gpcc-36pq-8qxr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gpcc-36pq-8qxr
Aliases
Published
2026-11-19T20:39:27Z
Modified
2026-11-19T20:45:04Z
Severity
  • 8.4 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Tapir: Construction/decode RCE via property name -> raw case-class field (tapir-openapi-codegen)
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-116",
        "CWE-94",
        "CWE-95"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-11-19T20:39:27Z",
    "nvd_published_at": "2026-11-18T20:19:12Z",
    "severity": "HIGH"
}
References

Affected packages

Maven / com.softwaremill.sttp.tapir:tapir-openapi-codegen-core

Package

Name
com.softwaremill.sttp.tapir:tapir-openapi-codegen-core
View open source insights on deps.dev
Purl
pkg:maven/com.softwaremill.sttp.tapir/tapir-openapi-codegen-core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.13.27

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-gpcc-36pq-8qxr/GHSA-gpcc-36pq-8qxr.json"