Read the docs
TI-2026-20303 Aliases CVE-2026-25141GHSA-gch2-phqh-fg9q

Orval has a code injection via unsanitized x-enum-descriptions uing JS comments

Priority MEDIUM 49CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.

Summary

Orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification. Versions starting with 7.19.0 and prior to 7.21.0 and 8.2.0 have an incomplete fix for CVE-2026-23947. While the jsStringEscape function properly handles single quotes ('), double quotes (") and so on, it is still possible to achieve code injection using only a limited set of characters that are currently not escaped. The vulnerability lies in the fact that the application can be forced to execute arbitrary JavaScript using characters such as []()!+. By using a technique known as JSFuck, an attacker can bypass the current sanitization logic and run arbitrary code without needing any alphanumeric characters or quotes. Version 7.21.0 and 8.2.0 contain an updated fix.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0069 53rd percentileScored 2026-11-07
Fix Fixed orval (orval-labs): 7.21.0, 8.2.0@orval/core (npm): 7.21.0, 8.2.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
orval-labsorval7.19.0 to before 7.21.0; 8.0.0 to before 8.2.07.21.0, 8.2.0Patch availableCNA
—@orval/core (npm)7.19.0 to before 7.21.07.21.0Patch availableGHSA-gch2-phqh-fg9q
—@orval/core (npm)8.0.0 to before 8.2.08.2.0Patch availableGHSA-gch2-phqh-fg9q
  • orval Vendororval-labs Affected 7.19.0 to before 7.21.0; 8.0.0 to before 8.2.0 Fixed in 7.21.0, 8.2.0 Patch available CNA
  • @orval/core (npm) Vendor— Affected 7.19.0 to before 7.21.0 Fixed in 7.21.0 Patch available GHSA-gch2-phqh-fg9q
  • @orval/core (npm) Vendor— Affected 8.0.0 to before 8.2.0 Fixed in 8.2.0 Patch available GHSA-gch2-phqh-fg9q

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:orval:orval:*:*:*:*:*:*:*:*7.19.0 to before 7.21.0; 8.0.0 to before 8.2.0Vulnerableorval-labs
  • cpe:2.3:a:orval:orval:*:*:*:*:*:*:*:* Versions 7.19.0 to before 7.21.0; 8.0.0 to before 8.2.0 Vulnerable ·orval-labs

Remediation

  • Fix · CNA orval (orval-labs) Fixed in 7.21.0, 8.2.0
  • Fix · GHSA-gch2-phqh-fg9q @orval/core (npm) Fixed in 7.21.0 Advisory →
  • Fix · GHSA-gch2-phqh-fg9q @orval/core (npm) Fixed in 8.2.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-25141
  2. 2026-10-03 Alias added: GHSA-gch2-phqh-fg9q

References

  • TI-2026-19289 Orval MCP client is vulnerable to code injection via unsanitized x-enum-descriptions in enum generation CVSS 4.0CRITICAL 9.3
  • TI-2026-18303 orval MCP client is vulnerable to a code injection attack. CVSS 4.0CRITICAL 9.3
  • TI-2026-19450 Orval Mock Generation Code Injection via const CVSS 4.0HIGH 7.7

Sources