Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.3
CVE-2026-96757: orval may run malicious code via crafted API specs
CVE-2026-96757 · published 5 days ago
Summary
The orval tool that creates code from OpenAPI definitions can insert unescaped text into the Content-Type header. If an attacker supplies a specially crafted API description, the generated code could execute unwanted JavaScript when it runs. Update orval to the latest version to prevent this risk.
What to do
- Update orval-labs orval to version 8.29.0 or later.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| orval-labs | orval | < 8.29.0 |
Original advisory text
orval before 8.29.0 Code Injection via unescaped OpenAPI media-type
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.
References
- https://github.com/orval-labs/orval
- https://github.com/orval-labs/orval/blob/v8.28.1/packages/fetch/src/index.ts#L58...
- https://github.com/orval-labs/orval/commit/43af282d62dca0ef3140023741fb768f6a718...
- https://github.com/orval-labs/orval/commit/a2d4af59f3b167dc8a7a65d15f51cdb89ebe2...
- https://github.com/orval-labs/orval/pull/4007
- https://github.com/orval-labs/orval/security/advisories/GHSA-4q3x-rqfw-3x8p
- https://github.com/orval-labs/orval/security/advisories/GHSA-rcpr-mq4m-jx9j
- https://www.vulncheck.com/advisories/orval-before-8.29.0-code-injection-via-unes...
Severity
9.3
Critical
CVSS 3.1: 9.8 (NVD)
CVSS 4.0: 9.3 (NVD)
Exploitation
EPSS <1%
Type
CWE-94Code Injection
Timeline
Published23 Sep 2026
Updated29 Sep 2026
First seen23 Sep 2026
Track software like this
Free during beta