PatchSiren cyber security CVE debrief
CVE-2026-108551 ferdikoomen CVE debrief
openapi-typescript-codegen through 0.31.0 contains a code injection vulnerability via Handlebars templates, allowing attackers controlling an OpenAPI document to inject JavaScript by supplying unescaped values interpolated into single-quoted string literals. This vulnerability can be exploited by embedding 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. Defenders should assess exposure and prioritize verification and updates.
- Vendor
- ferdikoomen
- Product
- openapi-typescript-codegen
- CVSS
- CRITICAL 9.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-10-10
- Original CVE updated
- 2026-10-13
- Advisory published
- 2026-10-10
- Advisory updated
- 2026-10-13
Who should care
Defenders responsible for openapi-typescript-codegen deployments should assess exposure and prioritize verification and updates. This includes operators, platform administrators, vulnerability management teams, and security teams who need to verify and update openapi-typescript-codegen versions to prevent potential code injection attacks.
Why it matters
Defenders should prioritize verifying and updating openapi-typescript-codegen versions to prevent potential code injection attacks.
- Potential code injection attacks via Handlebars templates
- Need to verify and update openapi-typescript-codegen versions
- Possible exploitation through unescaped values in OpenAPI documents
Technical summary
The openapi-typescript-codegen package through version 0.31.0 is vulnerable to code injection attacks via Handlebars templates. Attackers controlling an OpenAPI document can inject JavaScript by supplying unescaped values interpolated into single-quoted string literals. This vulnerability can be exploited by embedding 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. Defenders should prioritize verifying and updating openapi-typescript-codegen versions to prevent potential code injection attacks.
Defensive priority
Defenders should prioritize verifying and updating openapi-typescript-codegen versions to prevent potential code injection attacks.
Recommended defensive actions
- Verify openapi-typescript-codegen version and update to a fixed version if necessary
- Review OpenAPI documents for potential code injection vulnerabilities
- Implement input validation and sanitization for OpenAPI documents
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
- Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
Evidence notes
The CVE record and source item provide details on the code injection vulnerability in openapi-typescript-codegen through 0.31.0. The vulnerability allows attackers to inject JavaScript via Handlebars templates by supplying unescaped values interpolated into single-quoted string literals. Defenders should verify and update openapi-typescript-codegen versions to prevent potential code injection attacks.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-108551 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-108551
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-108551 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-108551
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
openapi-typescript-codegen through 0.31.0 Code Injection via Handlebars Templates
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/108xxx/CVE-2026-108551.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://github.com/ferdikoomen/openapi-typescript-codegen/issues/2809
Supplemental source - issue-tracking
-
Source reference
Unverified legacy reference
URL: https://github.com/ferdikoomen/openapi-typescript-codegen
Supplemental source - product
-
Source reference
Unverified legacy reference
URL: https://github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/exportService.hbs
Supplemental source - technical-description
-
Source reference
Unverified legacy reference
URL: https://github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/core/OpenAPI.hbs
Supplemental source - technical-description
-
Source reference
Unverified legacy reference
URL: https://www.vulncheck.com/advisories/openapi-typescript-codegen-through-0.31.0-code-injection-via-handlebars-templates
Supplemental source - third-party-advisory
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.