
🚨 A crafted OpenAPI document can turn generated TypeScript clients into a code execution path; CVE-2026-108551 PoC: https://github.com/Zombie-Kaiser/CVE-2026-108551-POC The flaw affects openapi-typescript-codegen and stems from unsafe interpolation inside Handlebars templates. An attacker who controls an OpenAPI document can inject JavaScript through values such as path keys, parameter names, server URLs, or version fields. CVSS: 9.3 Critical Affected: openapi-typescript-codegen ≤ 0.31.0 Impact: Arbitrary JavaScript execution when generated clients are imported or affected service methods are called The PoC demonstrates how malicious OpenAPI input can survive client generation and execute once the generated code is used.
Post summary
CVE-2026-108551 is disclosed as a critical vulnerability in openapi-typescript-codegen (≤0.31.0) allowing arbitrary JavaScript execution via crafted OpenAPI documents, with a linked PoC demonstrating the exploit path.








