CVE-2026-108551

published 10 Oct 2026 · updated 13 Oct 2026

openapi-typescript-codegen through 0.31.0 Code Injection via Handlebars Templates

9.8CriticalCVSS 9.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

openapi-typescript-codegen through 0.31.0 contains a code injection vulnerability that allows attackers controlling an OpenAPI document to inject JavaScript by supplying unescaped values interpolated into single-quoted string literals. Attackers can embed a single quote in path keys, parameter names, servers[0].url, or info.version to execute arbitrary JavaScript when generated clients are imported or service methods called.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
ferdikoomen<=0.31.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-108551 severity on Zeptric[![CVE-2026-108551](https://zeptric.io/badge/cve/CVE-2026-108551.svg)](https://zeptric.io/cve/CVE-2026-108551)