CVE-2026-108551
openapi-typescript-codegen through 0.31.0 Code Injection via Handlebars Templates
ferdikoomen openapi-typescript-codegen
CVSS
9.3CriticalExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.41%Chance of exploitation activity in the next 30 days, higher than 34% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed inNone listedNo source names a fixed version. Check the vendor advisory below
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Timeline
- 10 Oct 2026, 14:35 UTCPublishedCVE List
- 23 Oct 2026, 13:32 UTCExploit code publicGitHub proof-of-concept repositories
Reports 1
1 outlet mention it. Reports are not confirmation; each links to its source.
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.
Text from CVE List
Affected versions 1
- openapi-typescript-codegenaffected: all versions through 0.31.0CVE List
References 5
- vulncheck.com/advisories/openapi-typescript-codegen-through-0.31.0-code-injection-via-handlebars-templatesAdvisoryvia CVE List
- github.com/ferdikoomen/openapi-typescript-codegen/issues/2809Referencevia CVE List
- github.com/ferdikoomen/openapi-typescript-codegenReferencevia CVE List
- github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/exportService.hbs#L89-L110Referencevia CVE List
- github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/core/OpenAPI.hbs#L20-L23Referencevia CVE List