Skip to main content
VulnerabilityPublished Updated

CVE-2026-108551: ferdikoomen openapi-typescript-codegen · Code Injection

Affects ferdikoomen openapi-typescript-codegenSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 9.3 Critical.

Data as of 22 Nov 2026, 21:14 UTC

CVSS 4.0 base score
9.3Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 36% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    Public exploit code: GitHub proofs of concept

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 22 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
ferdikoomenopenapi-typescript-codegenAffected
  • <=0.31.0
Fixed in–
npmopenapi-typescript-codegenpkg:npm/openapi-typescript-codegenOther threatsAffected
  • <=0.31.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Until a fix is available, avoid using untrusted OpenAPI documents with openapi-typescript-codegen or sanitize inputs to prevent injection. Monitor vendor channels for updates and apply official patches once released.

Description

openapi-typescript-codegen versions up to and including 0.31.0 contain a critical code injection vulnerability. This flaw allows attackers who can control an OpenAPI document to inject arbitrary JavaScript code by supplying unescaped values that are interpolated into single-quoted string literals. The injection points include path keys, parameter names, servers[0].url, and info.version fields. Exploitation occurs when generated clients are imported or service methods are called, leading to arbitrary code execution.

References

Community reviews

Loading reviews…