CVE-2026-108551 openapi-typescript-codegen - Code Injection

openapi-typescript-codegen <= 0.31.0 contains a code injection vulnerability caused by unescaped values interpolated into single-quoted string literals, letting attackers inject JavaScript and execute arbitrary code when generated clients are used, exploit requires attacker control of OpenAPI document.

CVSS base score 9.8 /10
Critical
CISA KEV
Not listed
Public exploit
None known
Authentication
Not required
EPSS
0.41% chance of exploitation in 30 days
View the NVD record ↗