Security readout for executives and security teams
Plain-English summary
CVE-2026-25141 affects Orval, a tool that generates TypeScript clients from OpenAPI or Swagger files. Malicious content in API specifications can be transformed into JavaScript that runs during generation. This is most urgent for teams that generate clients from third-party, partner, or otherwise untrusted API definitions.
Executive priority
Treat as high-priority for engineering and platform teams because compromise could occur through normal client-generation workflows. Prioritize CI/build environments and teams consuming external API specs. Upgrade is available, so remediation should be scheduled promptly rather than accepted as a long-term risk.
Technical view
Orval versions >=7.19.0 <7.21.0 and >=8.0.0 <8.2.0 incompletely fixed CVE-2026-23947. Unsanitized x-enum-descriptions handling can allow code injection in generated JavaScript comments. The issue is classified as CWE-94 with CVSS 4.0 score 9.3. Versions 7.21.0 and 8.2.0 contain the updated fix.
Likely exposure
Exposure is primarily in developer workstations, build systems, or CI pipelines running affected Orval versions against malicious or untrusted OpenAPI v3 or Swagger v2 specifications. Organizations using only trusted, internally controlled specifications have lower practical exposure, but should still upgrade.
Exploitation context
The source bundle does not show CISA KEV listing or other evidence of active exploitation. Exploitation depends on getting an affected Orval workflow to process a crafted API specification. Impact may include code execution in the environment where generation occurs.
Researcher notes
This is an incomplete-fix issue related to CVE-2026-23947. Focus review on x-enum-descriptions processing and comment/string escaping in Orval generation paths. Do not assume runtime application exposure unless affected generated code or generation workflows are reachable in that environment.
Mitigation direction
- Upgrade affected Orval 7.x deployments to version 7.21.0 or later.
- Upgrade affected Orval 8.x deployments to version 8.2.0 or later.
- Restrict Orval generation to trusted API specifications until upgraded.
- Review CI and build pipelines for automated generation from external specifications.
- Monitor the GitHub advisory for any updated vendor guidance.
Validation and detection
- Inventory Orval versions in package manifests and lockfiles.
- Confirm no installed Orval version is in the affected version ranges.
- Identify pipelines that fetch OpenAPI or Swagger files from external sources.
- Verify builds use Orval 7.21.0, 8.2.0, or later.
- Review generated-client workflows for unexpected specification sources.
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-94: Code execution behavior lookup
Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process 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 lookupExecution 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 lookupCVE-2026-25141 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
- 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
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:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N——Primary CVE scoreVulnerability scoring details
Base CVSS 4.0 score
9.3CriticalVector: 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
Source materials
- CVE List V5 sourceCVE List V5
- https://github.com/orval-labs/orval/security/advisories/GHSA-gch2-phqh-fg9qCVE reference · x_refsource_CONFIRM
- https://github.com/orval-labs/orval/security/advisories/GHSA-h526-wf6g-67jvCVE reference · x_refsource_MISC
- https://github.com/orval-labs/orval/blob/02211fc413524be340ba9ace866a2ef68845ca7c/packages/core/src/utils/string.ts#L227CVE reference · x_refsource_MISC
- https://github.com/orval-labs/orval/releases/tag/v7.21.0CVE reference · x_refsource_MISC
- https://github.com/orval-labs/orval/releases/tag/v8.2.0CVE 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 Control of Generation of Code ('Code Injection')
Improper Control of Generation of Code ('Code Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
