CVE-2026-108551openapi-typescript-codegen through 0.31.0 Code Injection via Handlebars Templates
Updated under an hour ago ()
Does this affect you?
It affects ferdikoomen openapi-typescript-codegen. Add what you run to find out whether that includes you.
EPSS puts the chance of exploitation in the next 30 days at 0.41%, higher than 34% of scored CVEs.
Do this next
Free account, 1 product
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.
- CVSS
- 9.8 CRITICAL (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness (CWE)
- CWE-94
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- 0.41% (percentile 34)
- Assigned by
- VulnCheck
- NVD analysis
- Deferred
- Record last updated
- Oct 13, 2026
- First seen by InfoSec Signals
- Oct 10, 2026
Affected products
ferdikoomen openapi-typescript-codegen ferdikoomen:openapi_typescript_codegen (from the name) | through 0.31.0 | CNA record |
References
- https://github.com/ferdikoomen/openapi-typescript-codegen/issues/2809issue-tracking
- https://github.com/ferdikoomen/openapi-typescript-codegenproduct
- https://github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/exportService.hbs#L89-L110technical-description
- https://github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/core/OpenAPI.hbs#L20-L23technical-description
- https://www.vulncheck.com/advisories/openapi-typescript-codegen-through-0.31.0-code-injection-via-handlebars-templatesthird-party-advisory
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.