CVE-2026-108551: Vulnerability in Openapi-typescript-codegen
Critical. 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...
CWE-94
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- 0.4 % in 30 days
- Fix
- None recorded
- Patch deadline
- No deadline set
Details
- EU ID
- EUVD-2026-96346
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-94
- Published
- 10 Oct 2026
- Last change
- 16 Oct 2026
- Likelihood rank
- Higher than 38 % of all rated vulnerabilities
- Analysis status
- Deferred
Affected products
Affected versions and the first fixed release
- Openapi-typescript-codegen Through 0.31.0. No fixed version recorded
Advisories
Vendor and security advisories
- github.com/ferdikoomen/openapi-typescript-codegen
- github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/core/OpenA...
- github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/exportServ...
- github.com/ferdikoomen/openapi-typescript-codegen/issues/2809
- vulncheck.com/advisories/openapi-typescript-codegen-through-0.31.0-code-injection-via-h...
Related
- Openapi-typescript-codegen vulnerabilities Recent advisories, watch this product