CVE-2026-108551ferdikoomen openapi-typescript-codegen
JavaScript Code Injection in openapi-typescript-codegen
Critical 9.3 No auth needed
Follow: this CVE · ferdikoomen · ferdikoomen openapi-typescript-codegen We alert you by email or Slack (account required).
- Priority
- 71
- CVSS 4.0
- 9.3
- EPSS
- —
- Auth required
- No
- Published
- Oct 10, 2026
- Updated
- Oct 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
openapi-typescript-codegen through version 0.31.0 contains a code injection vulnerability allowing attackers controlling an OpenAPI document to inject JavaScript by supplying unescaped values interpolated into single-quoted string literals. An attacker can execute arbitrary JavaScript when generated clients are imported or service methods are called.
Show the original NVD text
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.
What to do
No patch data
Update openapi-typescript-codegen to a version after 0.31.0 when available. Validate and sanitize OpenAPI documents before processing them.
- Apply the vendor's security update for openapi-typescript-codegen.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- ferdikoomen · openapi-typescript-codegen
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.