Skip to main content

tapir-openapi-codegen EUVDEUVD-2026-129177

| CVE-2026-76090 HIGH
Code Injection (CWE-94)
2026-11-18 security-advisories@github.com GHSA-gpcc-36pq-8qxr
8.4
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply crafted OpenAPI spec to developer/CI
  2. Delivery
    Victim runs tapir-openapi-codegen-core on it
  3. Exploit
    Malicious names break out of identifier/string contexts
  4. Execution
    Injected Scala executes at compile/endpoint-assembly time
  5. Impact
    Code execution in build environment

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that a victim runs tapir-openapi-codegen-core (versions prior to 1.13.27) over an OpenAPI document sourced from an untrusted or attacker-influenced party, and then compiles or assembles the generated code - the injection fires at generated-code compile time and/or endpoint-assembly time, not at server runtime. The specific attacker-controlled inputs are object property names (mapped to case-class fields), query/header/path parameter names (mapped to the endpoint input DSL), and operation tags (mapped to .tags(List(...))), which were emitted into generated Scala without context-appropriate validation or escaping. Key LIMITING factors: an attacker cannot reach a running tapir server through this flaw; a human/CI action to ingest the hostile spec and build is required (UI:A); and anyone exclusively generating code from trusted, first-party specifications is not meaningfully exposed. Updating to 1.13.27 (which routes identifier-position names through validation/quoting and string values through JavaEscape.escapeString, and rejects unsafe server URLs) is the fix.

Impact

This is a build/codegen-time code injection (CWE-94/95) in tapir-openapi-codegen-core, confirmed by the SoftwareMill GitHub Security Advisory GHSA-gpcc-36pq-8qxr and the fix commit e015939b7 / PR #5395. The provided CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H, score 8.4) is internally consistent with the mechanism: exploitation is LOCAL (AV:L) because it occurs when a developer or CI pipeline runs the generator over an untrusted OpenAPI document, and it requires user/active interaction (UI:A) - someone must actually feed the malicious spec to the codegen and compile/assemble the output. The description is explicit that this does NOT make a running tapir server exploitable, so despite the 'RCE' tag this is not a remote-network server vulnerability. No EPSS score was provided, there is no CISA KEV listing, and no working exploit is in the input - the four references are all the fix commit, PR, release and advisory, not a PoC. Real-world priority is moderate and driven by the vuln.today 'this_week' decision label and the full-impact (VC/VI/VA:H) rating, not by evidence of active exploitation; the practical risk is concentrated in the narrow population that runs tapir OpenAPI codegen against OpenAPI specs they do not control.

Exploit ScenarioDerived

An attacker publishes or supplies a crafted OpenAPI document whose object property names, query/header/path parameter names, or operation tags contain Scala-breaking characters. A developer or CI pipeline runs tapir-openapi-codegen-core against that spec; the malicious names break out of the generated identifier or string-literal contexts and inject arbitrary Scala that executes when the generated code is compiled or the endpoints are assembled, yielding code execution in the build/developer environment. No working public exploit is included in the provided data, though the fix commit demonstrating the vulnerable sinks is public.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Code injection in tapir-openapi-codegen-core (versions prior to 1.13.27) lets an attacker-controlled OpenAPI document smuggle arbitrary Scala into the generated sources, which then executes when that generated code is compiled or when the generated endpoints are assembled. Object property names, query/header/path parameter names and operation tags were interpolated into the emitted Scala without context-appropriate validation or escaping, so crafted names can break out of identifier or string-literal contexts. The impact is confined to code-generation and build time - a running tapir server cannot be reached through this flaw - and exploitation requires a user or CI job to run the generator over a hostile specification and then build the output; the SoftwareMill advisory GHSA-gpcc-36pq-8qxr confirms the defect, no public exploit was identified at time of analysis, and the CVE is not listed in CISA KEV.

RemediationAI

Upgrade tapir-openapi-codegen-core to 1.13.27 or later - the vendor-released patch version stated in GHSA-gpcc-36pq-8qxr and published as release tag v1.13.27 (https://github.com/softwaremill/tapir/releases/tag/v1.13.27, fix in PR #5395 / commit e015939b78df2de0fa3d3b8ed02961425e02145e), which validates or quotes identifier-position names, escapes string-literal values via JavaEscape and rejects unsafe server URLs. Until the upgrade is applied, the practical control is supply-chain hygiene around the input: only run the generator against OpenAPI documents from trusted, first-party sources, and treat any externally supplied or attacker-influenceable spec as executable code - anyone exclusively generating from trusted specifications is not meaningfully exposed to this flaw. Where third-party specs must be processed, inspect the generated Scala before it is compiled or assembled into endpoints, since the injection fires at that stage rather than in a running server, and gate codegen on isolated build agents with limited credentials. Note that updating is the complete fix; the vendor's change also hardens server-URL handling by rejecting values containing quotes, backticks, backslashes, '$' or control characters, so specifications with such URLs will now fail generation.

Affected VersionsENISA

tapir < 1.13.27

Affected Packages

maven com.softwaremill.sttp.tapir:tapir-openapi-codegen-core fix: 1.13.27
euvd tapir fix: 1.13.27

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Tapir is a Scala library for describing HTTP APIs and deriving servers, clients and documentation from those descriptions; tapir-openapi-codegen-core is the component that turns an OpenAPI document into Scala source. That generator builds code by string templating, and it previously emitted several values taken directly from the (untrusted) document into the output verbatim: schema property names became case-class field names, query/header/path parameter names became parts of the endpoint input DSL, and operation tags became .tags(List(...)) entries, with media-type strings and field/schema names also dropped into string literals. This is the CWE-94/CWE-95/CWE-116 class - code generation with unescaped, unvalidated input - where a crafted identifier or literal can terminate its surrounding context and append attacker-chosen Scala that runs at generated-code compile time and/or endpoint-assembly time. The advisory explicitly consolidates three separately reported sinks (query parameter, header parameter and tag) as one root cause, fixed together in PR #5395 / commit e015939b7, which routes identifier-position names through NameValidation and safe variable naming, escapes string-literal values through JavaEscape.escapeString and JavaEscape.quote, and outright rejects server URLs containing quotes, backticks, backslashes, '$' or control characters rather than trying to escape every context. Note that the severity metrics describe the impact of a successful injection, not the trigger mechanics; the sources do not describe every individual sink's exploitation sequence, only the categories of attacker-controlled input listed above.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 8.4 HIGH
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
vuln.today AI 7.8 HIGH

Triggered locally when codegen runs on an untrusted spec (AV:L) with no attacker privileges but requiring a victim to ingest and build the spec (UI:R); arbitrary Scala execution gives full C/I/A impact in the build environment.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 18, 2026 - 21:03 EUVD
CVE Published
Nov 18, 2026 - 20:19 cve.org
HIGH 8.4

DescriptionCVE.org

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.

Technical POC Analysis

CWE-94 (Improper Control of Generation of Code), with the advisory also mapping CWE-95 and CWE-116.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity code injection vulnerability in the tapir-openapi-codegen-core library affects development and build environments, allowing a maliciously crafted OpenAPI specification to inject arbitrary Scala code into generated sources. This code executes when a developer or CI job builds the generated output, potentially compromising the build system and developer workstation. Leadership should care because this can lead to unauthorized access and tampering within the software development lifecycle, though production servers are not directly reachable through this flaw.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include treating all OpenAPI specifications as untrusted input, manually reviewing generated Scala code for unexpected content, executing code generation in isolated build environments with minimal privileges, and temporarily avoiding generation from external or unvetted specifications until version 1.13.27 can be deployed.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
niche Scala HTTP library; only the OpenAPI codegen component is affected
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy