sadrobot

← Back to the monthly list

CVE-2026-108551 ferdikoomen · openapi-typescript-codegen

9.8 Critical

AI summary

openapi-typescript-codegen through 0.31.0 has a code injection flaw: an attacker controlling an OpenAPI document can inject JavaScript via unescaped single quotes in path keys, parameter names, servers[0].url or info.version. The code runs when generated clients are imported or service methods are called. Critical (9.8); only generate from trusted specifications.

Official 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.

Published
2026-10-10 15:16 UTC
Modified
2026-10-16 19:21 UTC
CVSS
9.8 Critical CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.73% (percentile 50)
ENISA EUVD
EUVD-2026-96346
CISA SSVC
Exploitation: none · Automatable: yes · Technical impact: total
CWE
CWE-94

CVSS vector

Attack vector
network
Attack complexity
low
Privileges required
none
User interaction
none
Scope
unchanged
Confidentiality
high
Integrity
high
Availability
high

References