LiveActive security incident?Get immediate response
CVE Record

CVE-2026-23947: Orval MCP client is vulnerable to code injection via unsanitized x-enum-descriptions in enum generation

Orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification. Versions prior to 7.19.0 until 8.0.2 are vulnerable to arbitrary code execution in environments consuming generated clients. This issue is similar in nature to CVE-2026-22785, but affects a different code path in @orval/core that was not addressed by CVE-2026-22785's fix. The vulnerability allows untrusted OpenAPI specifications to inject arbitrary TypeScript/JavaScript code into generated clients via the x-enumDescriptions field, which is embedded without proper escaping in getEnumImplementation(). I have confirmed that the injection occurs during const enum generation and results in executable code within the generated schema files. Orval 7.19.0 and 8.0.2 contain a fix for the issue.

CriticalCVSS 9.3Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

CVE-2026-23947 affects Orval, a tool that generates TypeScript/JavaScript API clients from OpenAPI or Swagger files. A malicious API specification can cause unsafe code to be written into generated client files. Risk is highest where teams generate or consume clients from third-party, partner, or otherwise untrusted API specs.

Executive priority

Treat as urgent for engineering environments that consume external API specifications. Prioritize dependency upgrades and regeneration of clients, especially in CI/CD pipelines or SDK generation workflows that process partner, customer, or internet-sourced specs.

Technical view

Affected Orval versions embed x-enumDescriptions content without proper escaping during enum generation in @orval/core getEnumImplementation(). This can place attacker-controlled TypeScript/JavaScript into generated schema files, leading to arbitrary code execution when generated clients are consumed. Fixed versions are 7.19.0 and 8.0.2, per the advisory.

Likely exposure

Organizations using Orval before 7.19.0, or 8.0.0-rc.0 through before 8.0.2, are exposed when generating clients from untrusted or compromised OpenAPI/Swagger specifications.

Exploitation context

No public source provided states active exploitation, and the CVE is not listed as KEV. Exploitation depends on influencing an OpenAPI/Swagger specification that Orval processes and on downstream use of the generated client code.

Researcher notes

This issue is described as similar to CVE-2026-22785 but in a different @orval/core path. Public details indicate injection through x-enumDescriptions during const enum generation. Do not assume prior fixes for CVE-2026-22785 cover this issue.

Mitigation direction

  • Upgrade Orval to 7.19.0 or 8.0.2, as appropriate for your release line.
  • Regenerate affected clients after upgrading Orval.
  • Avoid generating clients from untrusted OpenAPI or Swagger specifications until upgraded.
  • Review vendor advisory and release notes for any additional project-specific guidance.

Validation and detection

  • Inventory projects using Orval or @orval/core.
  • Check lockfiles and dependency manifests for affected Orval versions.
  • Identify generated clients created from third-party or untrusted specifications.
  • Review generated schema files from untrusted specs for unexpected code changes.
  • Confirm builds use Orval 7.19.0 or 8.0.2 after remediation.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

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 · medium confidence lookup

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 lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-23947 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.3 (4.0)
Known Exploited
No
Published

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Official CVE source material

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.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

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

ScoreVersionSeverityVectorExploitImpactSource
9.3CVSS 4.0CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N——Primary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

9.3Critical
CVSS 4.0 vector shape for CVE-2026-23947Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
orval-labsorval>= 8.0.0-rc.0, < 8.0.2, < 7.19.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-77 · source CWE mapping

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.