Skip to content
Heist/ feed
Critical

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

Type: advisorySource: Official CVE List1 source record

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.

Announced Group revision 1
Original source ↗

CVE-2026-108551

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-108551

openapi-typescript-codegen

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "ferdikoomen",
    "product": "openapi-typescript-codegen",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "versionType": "semver",
        "lessThanOrEqual": "0.31.0"
      }
    ],
    "packageURL": "pkg:npm/openapi-typescript-codegen",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-108551

Source reference: /cveMetadata/cveId

Publisher severity

critical

Source reference: /containers/cna/metrics

Event
#20573 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement