CVE-2026-108551
9.8 CRITICALpublic exploit availablePublished 2026-10-10 · Updated 2026-10-16
AI risk analysis
- Summary
- The vulnerability allows attackers to inject arbitrary JavaScript code into generated OpenAPI client code by manipulating unescaped values in single-quoted string literals within OpenAPI documents. This can lead to remote code execution when the generated clients are imported or used.
- Exploitability
- Exploitation is relatively straightforward as attackers only need to control an OpenAPI document with unescaped single quotes in path keys, parameter names, server URLs, or version fields to inject JavaScript code that executes during client usage.
- Blast radius
- The impact could be significant across any application using generated clients from vulnerable OpenAPI documents, potentially affecting multiple services and users who import or call those clients.
- Detection
- No reliable host or network indicator is derivable from the published description.
- Prioritized remediation
- Upgrade to openapi-typescript-codegen 0.31.1 or later to fix the code injection vulnerability.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD 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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-94
Public exploit & PoC references
- https://github.com/ferdikoomen/openapi-typescript-codegen
- https://github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/core/OpenAPI.hbs#L20-L23
- https://github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/exportService.hbs#L89-L110
- https://github.com/ferdikoomen/openapi-typescript-codegen/issues/2809
All references
- https://github.com/ferdikoomen/openapi-typescript-codegen
- https://github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/core/OpenAPI.hbs#L20-L23
- https://github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/exportService.hbs#L89-L110
- https://github.com/ferdikoomen/openapi-typescript-codegen/issues/2809
- https://www.vulncheck.com/advisories/openapi-typescript-codegen-through-0.31.0-code-injection-via-handlebars-templates
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- CRITICALCVE-2026-107700PoC
- HIGHCVE-2026-110444
- CRITICALCVE-2026-62176PoC
- HIGHCVE-2026-96756PoC
- CRITICALCVE-2026-96759PoC
- HIGHCVE-2024-42002PoC
- HIGHCVE-2026-100856PoC
- HIGHCVE-2026-102863
Related by shared AI tags and CWE weakness class. Browse the full archive.