CVE-2026-108551
CRITICAL 9.3openapi-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.
Severe if exploited (CVSS 9.3), but no known exploitation and low modeled probability. Patch on a normal cadence.
Exploitation likelihood
0.4%chance of exploitation in 30 days · 36th percentile
Impact if exploited
9.3CVSS 4.0 · CRITICAL
- ConfidentialityHigh
- IntegrityHigh
- AvailabilityHigh
What an attacker needs
- ✓Access: Reachable over the network — no local access needed
- ✓Privileges: No account or privileges required
- ✓User interaction: No user interaction needed
- ✓Complexity: No special conditions — reliably repeatable
- ✓Requirements: No special attack requirements
✓ lowers the bar for an attacker · ⚠ raises it
Proof of concept
No public PoC is currently catalogued.
Search for new PoCs
Search GitHub now — results may be empty or unverified.
Tracked sources are checked daily for recent CVEs, including PoCs published after the original disclosure. A later release appears after a tracked source lists it and a refresh succeeds.
Data snapshot:
Weakness (CWE)
- CWE-94: Improper Control of Generation of Code ('Code Injection')
CVSS 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
References and research data (JSON)
Unverified PoC candidates
Catalogue matches for further research. These repositories have not been validated as working exploits.
1 candidate
- https://github.com/Zombie-Kaiser/CVE-2026-108551-POC
Defense guide + static scanner for CVE-2026-108551 (openapi-typescript-codegen code injection).
PoC-in-GitHub · CVE-2026-108551
PoC-in-GitHub · CVE-2026-108551 · Updated 2026-10-25T08:44:27Z
All CVSS metrics
- CRITICAL 9.3 v4.0 · CNA Primary
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 - CRITICAL 9.8 v3.1 · CNA Primary
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CRITICAL 9.3 v4.0 · NVD Secondary
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CRITICAL 9.8 v3.1 · NVD Secondary
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
Advisories
- https://www.vulncheck.com/advisories/openapi-typescript-codegen-through-0.31.0-code-injection-via-handlebars-templates CVE record · VulnCheck · Updated 2026-10-10T14:35:05.552Z
NVD · CVE-2026-108551 · Updated 2026-10-16T19:21:14.417 - https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-96346 EUVD · EUVD-2026-96346
Technical & other
- https://github.com/ferdikoomen/openapi-typescript-codegen/issues/2809 CVE record · VulnCheck · Updated 2026-10-10T14:35:05.552Z
NVD · CVE-2026-108551 · Updated 2026-10-16T19:21:14.417 - https://github.com/ferdikoomen/openapi-typescript-codegen CVE record · VulnCheck · Updated 2026-10-10T14:35:05.552Z
NVD · CVE-2026-108551 · Updated 2026-10-16T19:21:14.417 - https://github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/exportService.hbs#L89-L110 CVE record · VulnCheck · Updated 2026-10-10T14:35:05.552Z
NVD · CVE-2026-108551 · Updated 2026-10-16T19:21:14.417 - https://github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/core/OpenAPI.hbs#L20-L23 CVE record · VulnCheck · Updated 2026-10-10T14:35:05.552Z
NVD · CVE-2026-108551 · Updated 2026-10-16T19:21:14.417