RCE in Ferdikoomen Openapi-Typescript-Codegen
CVE-2026-108551
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.
Vulnerability class: RCE (Remote Code Execution)
Published .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
Weakness classification (CWE)
References
- github.com/ferdikoomen/openapi-typescript-codegen/issues/2809 (issue-tracking)
- github.com/ferdikoomen/openapi-typescript-codegen (product)
- github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/ex… (technical-description)
- github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/co… (technical-description)
- www.vulncheck.com/advisories/openapi-typescript-codegen-through-0.31.0-code-inj… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-108551?
- CVE-2026-108551 is a critical-severity vulnerability in Ferdikoomen Openapi-Typescript-Codegen, classified under Code Injection. CVSS score: 9.8/10. Published 2026-10-10.
- How severe is CVE-2026-108551?
- Critical severity. CVSS v3 base score is 9.8 out of 10.