CVE-2026-96757
orval before 8.29.0 Code Injection via unescaped OpenAPI media-type
- State
- Published
- Severity
- 9.3 Critical
- Published
- Sep 23, 2026
- Updated
- Sep 23, 2026
- Reserved
- Sep 23, 2026
Description
orval before 8.29.0 fails to escape OpenAPI media-type keys when emitting them into single-quoted Content-Type string literals in generated code. Attackers can inject JavaScript through crafted media-type keys in OpenAPI specifications that executes when generated fetch operations or mock resolvers are invoked.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 9.3 Critical | 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 | VulnCheck |
| 3.1 | 9.8 Critical | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-94 Improper Control of Generation of Code ('Code Injection')
Affected Products
| Product | Versions |
|---|---|
orvalorval-labs |
|
References
- GitHub Security Advisory (GHSA-4q3x-rqfw-3x8p)vendor-advisory
- GitHub Security Advisory (GHSA-rcpr-mq4m-jx9j)vendor-advisory
- https://github.com/orval-labs/orval/pull/4007patchissue-tracking
- https://github.com/orval-labs/orval/commit/43af282d62dca0ef3140023741fb768f6a718adbpatch
- https://github.com/orval-labs/orval/commit/a2d4af59f3b167dc8a7a65d15f51cdb89ebe2fe5patch
- https://github.com/orval-labs/orval/blob/v8.28.1/packages/fetch/src/index.ts#L584technical-description
- https://github.com/orval-labs/orvalproduct
- VulnCheck Advisory: orval before 8.29.0 Code Injection via unescaped OpenAPI media-typethird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.