CVE-2026-24132: orval · Command Injection
Affects orvalSource CVE Database V5
Not known to be exploited · CVSS 7.7 High : upgrade to 8.0.3 or 7.20.0 soon.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 54% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 8.0.3, 7.20.0
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 22 Jan 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade orval and orval-labs/orval to 8.0.3 or 7.20.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| orval-labsorval | Affected
| Fixed in
|
npmorval-labs/orvalpkg:npm/orval-labs/orvalOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. Upgrade orval to version 7.20.0 or later, or 8.0.3 or later, where the vulnerability is fixed. 2. Implement strict validation and sanitization of all OpenAPI specifications before processing, especially those obtained from untrusted or external sources. 3. Employ static code analysis and security scanning on generated client and mock files to detect injected malicious code early in the development cycle. 4. Restrict usage of orval to trusted internal specifications where possible, minimizing exposure to crafted malicious inputs. 5. Integrate security gates in CI/CD pipelines to verify the integrity of generated code artifacts. 6. Educate developers and DevOps teams about the risks of processing untrusted API specifications and encourage secure coding practices. 7. 8. Consider isolating the code generation environment to limit potential impact of malicious code execution.
Description
Orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification. Versions 7.19.0 and below and 8.0.0-rc.0 through 8.0.2 allow untrusted OpenAPI specifications to inject arbitrary TypeScript/JavaScript into generated mock files via the const keyword on schema properties. These const values are interpolated into the mock scalar generator (getMockScalar in packages/mock/src/faker/getters/scalar.ts) without proper escaping or type-safe serialization, which results in attacker-controlled code being emitted into both interface definitions and faker/MSW handlers. The vulnerability is similar in impact to the previously reported enum x-enumDescriptions (GHSA-h526-wf6g-67jv), but it affects a different code path in the faker-based mock generator rather than @orval/core. The issue has been fixed in versions 7.20.0 and 8.0.3.
References
- github.com/orval-labs/orval/security/advisories/GHSA-f456-rf33-4626 (opens in a new tab)
- github.com/orval-labs/orval/pull/2828 (opens in a new tab)
- github.com/orval-labs/orval/pull/2829 (opens in a new tab)
- github.com/orval-labs/orval/pull/2830 (opens in a new tab)
- github.com/orval-labs/orval/commit/44ca8c1f5f930a3e4cefb6b79b38bcde7f8532a5 (opens in a new tab)
- github.com/orval-labs/orval/commit/6d8ece07ccb80693ad43edabccb3957aceadcd06 (opens in a new tab)
- github.com/orval-labs/orval/commit/9b211cddc9f009f8a671e4ac5c6cb72cd8646b62 (opens in a new tab)
- github.com/orval-labs/orval/releases/tag/v7.20.0 (opens in a new tab)
- github.com/orval-labs/orval/releases/tag/v8.0.3 (opens in a new tab)