CVE-2026-108551

Source
https://cve.org/CVERecord?id=CVE-2026-108551
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-108551.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-108551
Published
2026-10-10T14:35:05Z
Modified
2026-10-12T02:31:12Z
Severity
  • 9.3 (Critical) CVSS_V4 - 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 CVSS Calculator
Summary
openapi-typescript-codegen through 0.31.0 Code Injection via Handlebars Templates
Details

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.

Database specific
{
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
        "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/108xxx/CVE-2026-108551.json"
}
References

Affected packages

Git / github.com/ferdikoomen/openapi-typescript-codegen

Affected ranges

Type
GIT
Repo
https://github.com/ferdikoomen/openapi-typescript-codegen
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.31.0"
        },
        {
            "fixed": "0.31.0"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "DESCRIPTION"
    ]
}

Affected versions

v0.*
v0.15.0
v0.16.0
v0.16.1
v0.16.2
v0.17.0
v0.18.0
v0.18.1
v0.18.2
v0.19.0
v0.20.0
v0.20.1
v0.21.0
v0.22.0
v0.23.0
v0.24.0
v0.25.0
v0.26.0
v0.27.0
v0.28.0
v0.29.0
v0.30.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-108551.json"