CVE-2026-96756
8.1 HIGHpublic exploit availablePublished 2026-09-23 · Updated 2026-09-23
AI risk analysis
- Summary
- The flaw allows attackers to inject arbitrary expressions via date default values in OpenAPI schema defaults, leading to code execution with the consumer process privileges.
- Exploitability
- Exploitation requires control over OpenAPI schema defaults and enabling specific factory options, making it moderately hard.
- Blast radius
- If exploited, the vulnerability could lead to full compromise of the consumer process, potentially affecting the entire system.
- Detection
- No reliable host or network indicator is derivable from the published description.
- Prioritized remediation
- Upgrade to orval version 8.30.0 or later.
rcecode-injectionwebapi
Analysis generated locally by qwen2.5:7b-instruct (no data left the box). AI-assisted — verify against primary sources before acting.
NVD 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.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-94
Public exploit & PoC references
- 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
- https://github.com/orval-labs/orval/security/advisories/GHSA-wx66-36r6-v5g7
References
- 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
- https://github.com/orval-labs/orval/security/advisories/GHSA-wx66-36r6-v5g7
- https://www.vulncheck.com/advisories/orval-before-8.30.0-code-injection-via-factory-generation
Data: NVD (public domain). Analysis: local $0 model. Defensive use only.