CVE-2026-96757 json
orval before 8.29.0 Code Injection via unescaped OpenAPI media-type
published 2mo ago modified last mo. also EUVD-2026-85407 , GHSA-4q3x-rqfw-3x8p , GHSA-rcpr-mq4m-jx9j
Unreviewed: the maintainers' own advisory
Published by the maintainers on their GitHub repository orval-labs/orval. GitHub has not reviewed it into the GitHub Advisory Database, so the affected packages and versions are the maintainers' word. Read the full advisory on GitHub.
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 57%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm orval >=8.29.0
- npm @orval/fetch >=8.29.0
- npm @orval/solid-start >=8.29.0
- npm @orval/core >=8.29.0
- orval-labs orval 8.29.0
- github.com/orval-labs/orval@43af282 commit
- github.com/orval-labs/orval@a2d4af5 commit
- github.com/orval-labs/orval#4007 pull request
Is CVE-2026-96757 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- last mo.
Exploit prediction
0.82% chance of exploitation in the next 30 days, higher than 57% of all scored CVEs (FIRST EPSS, 2026-11-11).
Exploits and checks
- github.com https://github.com/orval-labs/orval/security/advisories/GHSA-4q3x-rqfw-3x8p referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 9.3 | 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 |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 4.0 | 9.3 | 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 |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | orval | >=6.7.1 |
>=8.29.0 |
| npm | @orval/fetch | <=8.28.1 |
>=8.29.0 |
| npm | @orval/solid-start | <=8.28.1 |
>=8.29.0 |
| npm | @orval/core | <=8.28.1 |
>=8.29.0 |
Affected products
- orval-labs orval
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/orval-labs/orval/pull/4007
patch, issue-tracking
-
github.com
/orval-labs/orval/commit/43af282d62dca0ef3140023741fb768f6a718adb
patch
-
github.com
/orval-labs/orval/commit/a2d4af59f3b167dc8a7a65d15f51cdb89ebe2fe5
patch
-
github.com
/orval-labs/orval/security/advisories/GHSA-4q3x-rqfw-3x8p
vendor-advisory, exploit, advisory
-
github.com
/orval-labs/orval/security/advisories/GHSA-rcpr-mq4m-jx9j
vendor-advisory, advisory
-
github.com
/orval-labs/orval/blob/v8.28.1/packages/fetch/src/index.ts#L584
technical-description
-
github.com
/orval-labs/orval
product
-
vulncheck.com
/advisories/orval-before-8.29.0-code-injection-via-unescaped-openapi-media-type
third-party-advisory
Sources
- CVE List CVE-2026-96757
- NVD CVE-2026-96757
- Maintainer advisory GHSA-4q3x-rqfw-3x8p
- Maintainer advisory GHSA-rcpr-mq4m-jx9j
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of orval-labs/orval published their own advisory on GitHub. Reviewed sources take precedence over it.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.