Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2026-108551 EUVD-2026-96346GHSA-3pr5-x7xf-mg4g

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

Published Oct 10, 2026 · Updated Oct 13, 2026 · Assigned by VulnCheck

Description

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 products

VendorProductAffectedFixed
ferdikoomen openapi-typescript-codegen ≤ 0.31.0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

References