Exploit database

Vulnerability

CVE-2026-108551

openapi-typescript-codegen through 0.31.0 Code Injection via Handlebars Templates

Vulnerability details

Score
9.3
Severity
critical

CVSS 4.0 · VulnCheck

Vector string

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

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.

CVE Program

Exploit source choices

1 source
zombie-kaiser/cve-2026-108551-poc
GH-3ca1b932c3ad16fd6b5ed90069e1bbe9GitHubUnofficial GitHub sourcePreferred

Defense guide + static scanner for CVE-2026-108551 (openapi-typescript-codegen code injection).

2026-10-2315 files · 1 stars