# CVE-2026-96756: orval before 8.30.0 Code Injection via Factory Generation

- Severity: Critical 9.2 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-09-23T16:23:53.491Z
- Modified: 2026-09-23T20:17:27.057Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- orval-labs orval: before 8.30.0 (not affected: 8.30.0)

## Every score

- VulnCheck: CVSS: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: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/orval-labs/orval/security/advisories/GHSA-wx66-36r6-v5g7> (vendor-advisory)
- <https://github.com/orval-labs/orval/pull/4038> (issue-tracking, patch)
- <https://github.com/orval-labs/orval/commit/b9b083576943c683540200eb957feced57dddc1a> (patch)
- <https://github.com/orval-labs/orval/blob/v8.29.0/packages/core/src/generators/factory.ts#L493> (technical-description)
- <https://github.com/orval-labs/orval> (product)
- <https://www.vulncheck.com/advisories/orval-before-8.30.0-code-injection-via-factory-generation> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-96756](https://www.cve.org/CVERecord?id=CVE-2026-96756), CVE Terms of Use, modified 2026-09-23
- NVD: [CVE-2026-96756](https://nvd.nist.gov/vuln/detail/CVE-2026-96756), Public domain, modified 2026-09-23

---

Page: https://cve.day/CVE-2026-96756 · Whole record: https://cve.day/CVE-2026-96756.json · Rebuilt by cve.day 2026-11-25T22:59:40.649Z
