{"schema":"threatline.record/2","record":{"id":"CVE-2026-108551","aliases":[],"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.","categories":["Unclassified"],"product":"openapi-typescript-codegen","vendor":"ferdikoomen","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-108551","source_modified_at":"2026-10-13T18:27:49.183Z","fetched_at":"2026-10-23T18:42:43.628194Z","product":"openapi-typescript-codegen","vendor":"ferdikoomen","versions":[{"version":"0","status":"affected","versionType":"semver","lessThanOrEqual":"0.31.0"}],"defaultStatus":"unaffected"}],"fixed_versions":[],"cvss":9.3,"severity":"Critical","kev":{"listed":false},"epss":{"probability":0.00415,"percentile":0.34797,"score_date":"2026-10-23"},"published_at":"2026-10-10T14:35:05.552Z","modified_at":"2026-10-13T18:27:49.183Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-108551","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-13T18:27:49.183Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-108551","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/ferdikoomen/openapi-typescript-codegen/issues/2809","tags":["issue-tracking"]},{"source":"CVE List","url":"https://github.com/ferdikoomen/openapi-typescript-codegen","tags":["product"]},{"source":"CVE List","url":"https://github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/exportService.hbs#L89-L110","tags":["technical-description"]},{"source":"CVE List","url":"https://github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/core/OpenAPI.hbs#L20-L23","tags":["technical-description"]},{"source":"CVE List","url":"https://www.vulncheck.com/advisories/openapi-typescript-codegen-through-0.31.0-code-injection-via-handlebars-templates","tags":["third-party-advisory"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"total","assessed_at":"2026-10-13T18:27:39.102462Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":null,"confidence":"unknown","reviewed":false},"change_timestamp":"2026-10-13T18:27:49.183Z","content_hash":"9f916437d9d8d6d7ecc6be8516420f4598629fe8b85294efcd1d80d30fe18b63"}}
