CVE-2026-96756
orval before 8.30.0 Code Injection via Factory Generation
- State
- Published
- Severity
- 9.2 Critical
- Published
- Sep 23, 2026
- Updated
- Sep 23, 2026
- Reserved
- Sep 23, 2026
Description
orval versions before 8.30.0 contain a code injection vulnerability in the @orval/core factory generator that fails to escape date default values in new Date() calls. Attackers can inject arbitrary expressions through apostrophes in OpenAPI schema defaults to execute code with the privileges of the consumer process when factoryMethods and useDates options are enabled.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 9.2 Critical | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 8.1 High | CVSS:3.1/AV:N/AC:H/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-wx66-36r6-v5g7)vendor-advisory
- https://github.com/orval-labs/orval/pull/4038patchissue-tracking
- https://github.com/orval-labs/orval/commit/b9b083576943c683540200eb957feced57dddc1apatch
- https://github.com/orval-labs/orval/blob/v8.29.0/packages/core/src/generators/factory.ts#L493technical-description
- https://github.com/orval-labs/orvalproduct
- VulnCheck Advisory: orval before 8.30.0 Code Injection via Factory Generationthird-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.