Quick answers
- Is CVE-2026-23947 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-23947 being exploited in the wild.
- How severe is CVE-2026-23947?
- Medium severity, with a CVSS score of 4, published 21 January 2026.
- Which products and versions are affected?
- @orval/core (npm) SEMVER:introduced=8.0.0-rc.0,fixed=8.0.2.
- Is there a fix for CVE-2026-23947?
- Yes. @orval/core (npm): upgrade to 8.0.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-23947 attacked?
- It is attacked over the network.
- Am I affected by CVE-2026-23947?
- Check whether you run @orval/core (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- @orval/core (npm): upgrade to 8.0.2 or later
npm install @orval/core@8.0.2
Technical details
The vulnerability is a code injection flaw (CWE-94) in the getEnumImplementation() function of @orval/core. The x-enumDescriptions field from OpenAPI specifications is embedded directly into generated TypeScript/JavaScript enum code without sanitization or escaping. An attacker can craft a malicious OpenAPI specification containing JavaScript code within the x-enumDescriptions field (e.g., `require('child_process').execSync()`), which will be executed in the generated schema files when the code is generated. The attack requires an attacker to control or influence the OpenAPI specification consumed by Orval, but requires no authentication or user interaction beyond running the generation tool. Patches are available in versions 7.19.0 and 8.0.2.
Affected products
- Orval Labs @orval/core All versions before 7.19.0 and 8.0.0-rc.0 through before 8.0.2
Identifiers
- CVE-2026-23947
- GHSA-h526-wf6g-67jv
Timeline
- 2026-01-21: disclosed: GHSA published
- 2026-01-21: patched: Fixed in versions 7.19.0 and 8.0.2