CVE-2026-108551: ferdikoomen openapi-typescript-codegen · Code Injection
Affects ferdikoomen openapi-typescript-codegenSource CVE Database V5
Not known to be exploited · CVSS 9.3 Critical.
Data as of 22 Nov 2026, 21:14 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 36% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 10 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
Public exploit code: GitHub proofs of concept
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 22 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| ferdikoomenopenapi-typescript-codegen | Affected
| Fixed in– |
npmopenapi-typescript-codegenpkg:npm/openapi-typescript-codegenOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is available, avoid using untrusted OpenAPI documents with openapi-typescript-codegen or sanitize inputs to prevent injection. Monitor vendor channels for updates and apply official patches once released.
Description
openapi-typescript-codegen versions up to and including 0.31.0 contain a critical code injection vulnerability. This flaw allows attackers who can control an OpenAPI document to inject arbitrary JavaScript code by supplying unescaped values that are interpolated into single-quoted string literals. The injection points include path keys, parameter names, servers[0].url, and info.version fields. Exploitation occurs when generated clients are imported or service methods are called, leading to arbitrary code execution.
References
- github.com/ferdikoomen/openapi-typescript-codegen/issues/2809 (opens in a new tab)
- github.com/ferdikoomen/openapi-typescript-codegen (opens in a new tab)
- github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/exportService.hbs (opens in a new tab)
- github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/core/OpenAPI.hbs (opens in a new tab)
- vulncheck.com/advisories/openapi-typescript-codegen-through-0.31.0-code-injection-via-handlebars-templates (opens in a new tab)