openapi-typescript-codegen vulnerability

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 10 Oct 2026Updated 10 Oct 20265 sources
CVSS 9.3

Record history

Record created from the first normalized source observation.
Metadata and source references refreshed.