CVE-2026-108551CWE-94code-injection

CVE-2026-108551

Critical · published October 10, 2026

CVSS v3.1
9.8
EPSS
0%
Percentile
34.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
9.3 · 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
EPSS
0.00415 · 34.8th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-10-10T19:16Z
References (5)
EPSS history
Timeline
  • 12 OCT 03:26Z
    EPSS moved — → 0%
    epss
  • 10 OCT 14:35Z
    openapi-typescript-codegen through 0.31.0 Code Injection via Handlebars Templates
    cvelistv5
  • 10 OCT 14:35Z
    openapi-typescript-codegen through 0.31.0 Code Injection via Handlebars Templates
    cvelistv5