Advisories for Maven/Com.softwaremill.sttp.tapir/Tapir-Openapi-Codegen-Core package

2026

Tapir: Construction/decode RCE via property name -> raw case-class field (tapir-openapi-codegen)

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), …