CVE-2026-96757orval-labs orval
JavaScript Code Injection in Orval via Unescaped OpenAPI Media-Type Keys
Critical 9.3 No auth needed
Follow: this CVE · orval-labs · orval-labs orval We alert you by email or Slack (account required).
- Priority
- 71
- CVSS 4.0
- 9.3
- EPSS
- —
- Auth required
- No
- Published
- Sep 23, 2026
- Updated
- Sep 23, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- 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/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
What happens
Orval before version 8.29.0 fails to properly escape OpenAPI media-type keys when generating quoted string literals in generated code. An attacker can inject malicious JavaScript through crafted OpenAPI specifications that executes when generated fetch operations or mock resolvers are invoked.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 8.29.0
Update Orval to version 8.29.0 or later to apply the patch that properly escapes OpenAPI media-type keys.
- Apply the vendor's security update for orval.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- orval-labs · orval
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.