CVE-2026-108551
openapi-typescript-codegen through 0.31.0 contains a code injection …
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ferdikoomen/openapi-typescript-codegen
- github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/core/OpenAPI.
- github.com/ferdikoomen/openapi-typescript-codegen/blob/v0.31.0/src/templates/exportService
- github.com/ferdikoomen/openapi-typescript-codegen/issues/2809
- www.vulncheck.com/advisories/openapi-typescript-codegen-through-0.31.0-code-injection-via-
- nvd.nist.gov/vuln/detail/CVE-2026-108551
- cve.org/CVERecord?id=CVE-2026-108551
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.