Skip to content
High 8.4

Tapirのコード生成機能に任意のScalaコードを注入される脆弱性

CVE-2026-76090 First seen on SecPulse

Summary

Tapirのtapir-openapi-codegen-coreに、信頼できないOpenAPIドキュメントから任意のScalaコードを注入され、コンパイル時やエンドポイント組み立て時に実行される脆弱性(CVE-2026-76090)が見つかりました。影響するのは1.13.27より前の版で、修正版は1.13.27です。Tapirのサーバーを直接狙うものではありませんが、外部から受け取ったOpenAPIドキュメントからコードを生成している場合は、1.13.27以降へ速やかに更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Tapirのtapir-openapi-codegen-coreに、信頼できないOpenAPIドキュメントから任意のScalaコードを注入され、コンパイル時やエンドポイント組み立て時に実行される脆弱性(CVE-2026-76090)が見つかりました。影響するのは1.13.27より前の版で、修正版は1.13.27です。Tapirのサーバーを直接狙うものではありませんが、外部から受け取ったOpenAPIドキュメントからコードを生成している場合は、1.13.27以降へ速やかに更新してください。

Affected packages

PackageAffected → Fixed
softwaremilltapir —
Mavencom.softwaremill.sttp.tapir:tapir-openapi-codegen-core
< 1.13.27→ 1.13.27
Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details