Vulnerabilities in pkg:maven/com.softwaremill.sttp.tapir/tapir-openapi-codegen-core

PACKAGE
Advisory Identifier: GHSA-gpcc-36pq-8qxr
Advisory Summary

CVE-2026-76090 is a HIGH remote code execution vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting Tapir libraries in the Maven ecosystem. The issue involves construction/decode rce via property name -> raw case-class field (tapir-openapi-codegen). Remediation is available by upgrading affected packages to version 1.13.27.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.softwaremill.sttp.tapir/tapir-openapi-codegen-core

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.softwaremill.sttp.tapir/tapir-openapi-codegen-core. Select an advisory below to view technical details or fixes.

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

CVE-2026-76090 at a Glance

CVE Identifier CVE-2026-76090
GHSA Identifier GHSA-gpcc-36pq-8qxr
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-116: Improper Encoding or Escaping of Output
Affected Product Tapir
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2026-76090

To remediate this vulnerability, upgrade all affected Tapir dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

com.softwaremill.sttp.tapir:tapir-openapi-codegen-core fixed: 1.13.27
<dependency>
    <groupId>com.softwaremill.sttp.tapir</groupId>
    <artifactId>tapir-openapi-codegen-core</artifactId>
    <version>1.13.27</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=com.softwaremill.sttp.tapir

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-76090, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.softwaremill.sttp.tapir

Analyze the terminal output to locate any version of Tapir in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.13.27), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.softwaremill.sttp.tapir command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. In Tapir, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-76090 Affected Tapir Versions

1 component(s)
Fixed Versions:
1.13.27
Product / Package Ecosystem Affected Versions Fixed Version
com.softwaremill.sttp.tapir:tapir-openapi-codegen-core
Maven
< 1.13.27
1.13.27

References

Frequently Asked Questions

What is CVE-2026-76090?
CVE-2026-76090 is a security vulnerability in Tapir involving Construction/decode RCE via property name -> raw case-class field (tapir-openapi-codegen) under CWE-116: Improper Encoding or Escaping of Output.
Which Tapir versions are affected?
Affected versions include releases prior to 1.13.27 across affected packages: com.softwaremill.sttp.tapir:tapir-openapi-codegen-core.
What version fixes CVE-2026-76090?
Upgrading to 1.13.27 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tapir-openapi-codegen-core affected?
Yes, com.softwaremill.sttp.tapir:tapir-openapi-codegen-core is affected in releases prior to 1.13.27. Upgrade your dependency to 1.13.27 or later.
What CWE is associated with CVE-2026-76090?
CVE-2026-76090 is classified under CWE-116: Improper Encoding or Escaping of Output (The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.).
How can I check Maven dependencies for CVE-2026-76090?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.softwaremill.sttp.tapir'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gpcc-36pq-8qxr",
  "modified" : "2026-11-19T20:39:27Z",
  "published" : "2026-11-19T20:39:27Z",
  "aliases" : [ "CVE-2026-76090" ],
  "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).\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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.softwaremill.sttp.tapir:tapir-openapi-codegen-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.13.27"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/softwaremill/tapir/security/advisories/GHSA-gpcc-36pq-8qxr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-76090"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/softwaremill/tapir/pull/5395"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/softwaremill/tapir/commit/e015939b78df2de0fa3d3b8ed02961425e02145e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/softwaremill/tapir"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/softwaremill/tapir/releases/tag/v1.13.27"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-116", "CWE-94", "CWE-95" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-19T20:39:27Z",
    "nvd_published_at" : "2026-11-18T20:19:12Z"
  }
}