CVE-2026-23947CRITICAL 9.8EPSS p50.1%

CVE-2026-23947CVE-2026-23947

Description

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.

Scoring

CVSS 3.19.8 (CRITICAL)
VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS0.75% probability of exploitation · percentile 50.1% · 2026-06-19T12:03:05Z
Published2026-01-20
Last modified2026-02-27

Underlying weaknesses· 2

CWE-77CWE-94

References

  1. https://github.com/orval-labs/orval/releases/tag/v8.0.2
  2. https://github.com/orval-labs/orval/security/advisories/GHSA-h526-wf6g-67jv

2

TypeTargetConfidenceTier
WeaknessImproper Neutralization of Special Elements used in a Command ('Command Injection')cwe-770%live
WeaknessImproper Control of Generation of Code ('Code Injection')cwe-940%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CVE
CVE-2026-24132
CVE
CVE-2026-25141
CVE
CVE-2026-22785
CVE
CVE-2026-33331
CVE
CVE-2026-28794
CVE
CVE-2026-23544
Sourced from NVD + FIRST.org EPSS. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.