CVE-2026-76090
Received Received - Intake

Code Injection in Tapir Scala Library via OpenAPI Codegen

Vulnerability report for CVE-2026-76090, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-18

Last updated on: 2026-11-18

Assigner: GitHub, Inc.

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-18
Last Modified
2026-11-18
Generated
2026-11-19
AI Q&A
2026-11-19
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
softwaremill tapir to 1.13.27 (exc)
softwaremill tapir-openapi-codegen-core 1.13.27

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CWE-116 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.
CWE-95 The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval").

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-76090 is a code injection vulnerability in the Tapir library's openapi-codegen-core component. It occurs when generating Scala source code from untrusted OpenAPI documents. The generator uses string interpolation to include names and values from the OpenAPI spec directly into the generated code without proper sanitization or escaping. Attackers can craft malicious OpenAPI documents to inject arbitrary Scala code into generated source files, which executes during compilation or endpoint assembly.

Detection Guidance

This vulnerability is specific to the tapir-openapi-codegen-core library and occurs during code generation from OpenAPI documents. Detection requires checking the version of the tapir-openapi-codegen-core library in your project dependencies. Use commands like 'sbt dependencyTree' or 'mvn dependency:tree' to inspect versions. If the version is below 1.13.27, the system is vulnerable.

Impact Analysis

This vulnerability impacts users who generate Scala code from untrusted OpenAPI documents using Tapir versions prior to 1.13.27. Attackers could inject malicious Scala code that executes during build time or when endpoints are assembled. This could lead to arbitrary code execution, data breaches, or system compromise. The impact occurs at code generation or build time, not during runtime of a Tapir server.

Compliance Impact

This vulnerability could lead to unauthorized code execution and data access, potentially violating GDPR's integrity and confidentiality requirements or HIPAA's security rules for protected health information. Organizations using vulnerable versions may face compliance violations due to potential data breaches or unauthorized system access resulting from code injection.

Mitigation Strategies

Upgrade the tapir-openapi-codegen-core library to version 1.13.27 or later. Review and sanitize any OpenAPI documents used for code generation to ensure they do not contain malicious names or values. Avoid using untrusted OpenAPI specifications for code generation.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-76090. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...