{"id":"CVE-2026-108551","aliases":["CVE-2026-108551"],"related":[],"kind":"vulnerability","state":"published","title":"openapi-typescript-codegen through 0.31.0 Code Injection via Handlebars Templates","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-10-10T14:35:05.552Z","modified":"2026-10-16T19:21:14.417Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":9.3,"rating":"CRITICAL"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"0.31.0","status":"affected"}],"vendor":"ferdikoomen","product":"openapi-typescript-codegen","source":"cvelist"}],"references":[{"url":"https://github.com/ferdikoomen/openapi-typescript-codegen/issues/2809","tags":["issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ferdikoomen/openapi-typescript-codegen","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/exportService.hbs#L89-L110","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/core/OpenAPI.hbs#L20-L23","tags":["technical-description"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/openapi-typescript-codegen-through-0.31.0-code-injection-via-handlebars-templates","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["George Chen"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-10-13T18:27:39.102Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-108551","url":"https://www.cve.org/CVERecord?id=CVE-2026-108551","licence":"CVE Terms of Use","modified":"2026-10-13T18:27:49.183Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-108551","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-108551","licence":"Public domain","modified":"2026-10-16T19:21:14.417Z"}],"updatedAt":"2026-11-25T22:59:43.418Z","epss":{"score":0.00415,"percentile":0.37865,"date":"2026-12-01T12:00:22.000Z"}}