Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-108551— openapi-typescript-codegen through 0.31.0 Code Injection via Handlebars Templates

Quick assessment

Affected
ferdikoomen openapi-typescript-codegen
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

openapi-typescript-codegen(0.31.0 及更早版本)存在代码注入漏洞,攻击者可通过操控 OpenAPI 文档,在插值到单引号字符串字面量中的值未转义的情况下注入 JavaScript 代码。攻击者可在路径键、参数名、servers[0].url 或 info.version 中嵌入单引号,从而在导入生成的客户端或调用服务方法时执行任意 JavaScript 代码。

CVSS 9.8 · Critical EPSS 0.41% · P34

Affected Version Matrix 1

VendorProduct Version RangeStatus
ferdikoomen openapi-typescript-codegen ≤ 0.31.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-108551

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
openapi-typescript-codegen through 0.31.0 Code Injection via Handlebars Templates
Source: CVE Program / CVE List V5
Vulnerability Description
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: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
ferdikoomen openapi-typescript-codegen 0 ~ 0.31.0 -

II. Public POCs for CVE-2026-108551

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-108551

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-108551 (2)

Vendor Advisories for CVE-2026-108551 (1)

Proof of Concept for CVE-2026-108551 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-108551

No comments yet


Leave a comment