Skip to main content
← All vulnerabilities
CVE-2026-108551

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

Published
Last modified
Status
published
Known exploitation
Not listed in CISA KEV
Public exploit
None on Exploit-DB
CISA SSVC
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total
?

Decision points from CISA's Vulnrichment, assessed (SSVC 2.0.3).

SSVC documentation

Summary

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 versions

  • ferdikoomen openapi-typescript-codegen

    through 0.31.0

References 5

GitHub · ferdikoomen/openapi-typescript-codegen

vulncheck.com