CVE-2026-96756
published critical CVSS 4.0 · 9.2orval before 8.30.0 Code Injection via Factory Generation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| orval-labs | — | orval0 to < 8.30.0 (affected · semver) · 8.30.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.2 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.1 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| orval-labs | orval | 0 to < 8.30.0 (affected · semver)8.30.0 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
6- https://github.com/orval-labs/orval
- https://github.com/orval-labs/orval/blob/v8.29.0/packages/core/src/generators/factory.ts#L493
- https://github.com/orval-labs/orval/commit/b9b083576943c683540200eb957feced57dddc1a
- https://github.com/orval-labs/orval/pull/4038
- GitHub Security Advisory (GHSA-wx66-36r6-v5g7) https://github.com/orval-labs/orval/security/advisories/GHSA-wx66-36r6-v5g7
- VulnCheck Advisory: orval before 8.30.0 Code Injection via Factory Generation https://www.vulncheck.com/advisories/orval-before-8.30.0-code-injection-via-factory-generation
Provider assertions
2VulnCheck · cna
orval before 8.30.0 Code Injection via Factory Generation
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f999b2b25279f161210fe7551a4512167f9d7a18e18f802d22395f2ca31b64da
- Ingested
- 30 Sep 2026, 15:35:53 UTC
- Source record
- Official CVE record