Security readout for executives and security teams
Plain-English summary
Orval can generate mock TypeScript/JavaScript code from API specifications. In affected versions, a malicious OpenAPI or Swagger file can cause attacker-controlled code to be written into generated mock files. This matters for teams that generate mocks from specifications they do not fully trust.
Executive priority
Prioritize remediation for teams that ingest outside API specifications or run Orval in automated build environments. Internal-only, trusted specifications reduce urgency but do not remove the need to upgrade.
Technical view
CVE-2026-24132 affects orval <=7.19.0 and 8.0.0-rc.0 through 8.0.2. Unescaped schema property const values are interpolated in the faker mock scalar generator, causing arbitrary TypeScript/JavaScript emission in generated interfaces and faker/MSW handlers. The issue is fixed in 7.20.0 and 8.0.3.
Likely exposure
Exposure is most likely in developer workstations, CI jobs, or build pipelines using Orval mock generation with external, user-supplied, or partner-supplied OpenAPI v3 or Swagger v2 specifications.
Exploitation context
Sources do not report active exploitation or CISA KEV listing. Exploitation requires attacker influence over the API specification and user interaction, such as generating or consuming mock code from that specification.
Researcher notes
The vulnerability is in a different path than the earlier enum x-enumDescriptions issue: packages/mock/src/faker/getters/scalar.ts. Evidence names const handling, generated mock files, interface definitions, and faker/MSW handlers. Public sources identify fixes but do not provide evidence of exploitation in the wild.
Mitigation direction
- Upgrade Orval 7.x deployments to 7.20.0 or later.
- Upgrade Orval 8.x deployments to 8.0.3 or later.
- Do not generate mocks from untrusted specifications until upgraded.
- Review generated mock files before execution in sensitive environments.
- Check vendor advisory for any additional project-specific guidance.
Validation and detection
- Inventory package manifests and lockfiles for Orval versions.
- Identify CI jobs or scripts that run Orval mock generation.
- Determine whether specifications come from third parties or user-controlled sources.
- Confirm upgraded builds use Orval 7.20.0 or 8.0.3 or later.
- Review recent generated mock changes for unexpected embedded code.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CWE-77: Command execution behavior lookup
Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Open ATT&CK lookupCVE-2026-24132 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- High
- CVSS
- 7.7 (4.0)
- Known Exploited
- No
- Published
Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N——Primary CVE scoreVulnerability scoring details
Base CVSS 4.0 score
7.7HighVector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Source materials
- CVE List V5 sourceCVE List V5
- https://github.com/orval-labs/orval/security/advisories/GHSA-f456-rf33-4626CVE reference · x_refsource_CONFIRM
- https://github.com/orval-labs/orval/pull/2828CVE reference · x_refsource_MISC
- https://github.com/orval-labs/orval/pull/2829CVE reference · x_refsource_MISC
- https://github.com/orval-labs/orval/pull/2830CVE reference · x_refsource_MISC
- https://github.com/orval-labs/orval/commit/44ca8c1f5f930a3e4cefb6b79b38bcde7f8532a5CVE reference · x_refsource_MISC
- https://github.com/orval-labs/orval/commit/6d8ece07ccb80693ad43edabccb3957aceadcd06CVE reference · x_refsource_MISC
- https://github.com/orval-labs/orval/commit/9b211cddc9f009f8a671e4ac5c6cb72cd8646b62CVE reference · x_refsource_MISC
- https://github.com/orval-labs/orval/releases/tag/v7.20.0CVE reference · x_refsource_MISC
- https://github.com/orval-labs/orval/releases/tag/v8.0.3CVE reference · x_refsource_MISC
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
Improper Neutralization of Special Elements used in a Command ('Command Injection')
Improper Neutralization of Special Elements used in a Command ('Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
