CVE-2026-96758

orval @orval/core before 8.28.0 Code Injection via Form-Data

Published Sep 23, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
Description
orval @orval/core before 8.28.0 contains a code injection vulnerability in the form-data serializer that fails to escape multipart property names in generated template literals. Attackers can inject ${...} expressions into OpenAPI schema property names that execute as live interpolation when the generated client builds FormData bodies with consumer process privileges.

Analysis

AI-generated

Technical impact

The vulnerability in orval/core allows injected expressions inside OpenAPI schema property names to be executed when the client code is generated. The serializer fails to escape multipart property names in generated template literals, enabling an attacker to embed `${...}` expressions that interpolate at build time, leading to arbitrary code execution with the privileges of the consumer process.

Affected Systems

All installations of the orval/labs/orval product using orval/core prior to version 8.28.0 are affected. The issue exists in all releases of orval/core with versions earlier than 8.28.0 regardless of the environment in which the client is generated.

Risk and Exploitability

The CVSS score of 9.3 classifies this as a critical flaw. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Attackers are likely to exploit this flaw by introducing a malicious OpenAPI schema that contains crafted property names with `${...}` expressions into a build pipeline or a developer’s local environment. Once the client is generated and the FormData bodies are constructed in the consumer process, the malicious code will execute with the rights of that process, potentially compromising the entire build or runtime environment.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade orval to version 8.28.0 or later, which contains the necessary escaping logic for multipart property names.
  • Validate or sanitize all OpenAPI schemas before feeding them into the client generation step, ensuring that property names do not contain unescaped `${` sequences or other interpolation markers.
  • Restrict the source of OpenAPI specifications in automated build pipelines to trusted internal repositories or signed artifacts, and review any external schemas for malicious content before use.

Generated by OpenCVE AI on September 23, 2026 at 17:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Orval-labs
Orval-labs orval
Vendors & Products Orval-labs
Orval-labs orval
Type Values Removed Values Added
Description orval @orval/core before 8.28.0 contains a code injection vulnerability in the form-data serializer that fails to escape multipart property names in generated template literals. Attackers can inject ${...} expressions into OpenAPI schema property names that execute as live interpolation when the generated client builds FormData bodies with consumer process privileges.
Title orval @orval/core before 8.28.0 Code Injection via Form-Data
First Time appeared Orval
Orval orval
Weaknesses CWE-94
CPEs cpe:2.3:a:orval:orval:*:*:*:*:*:*:*:*
Vendors & Products Orval
Orval orval
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, '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'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 23, 2026, 6:39 PM
Reserved
Sep 23, 2026, 3:58 PM
Status
Deferred
Published
Sep 23, 2026, 5:17 PM
Modified
Sep 23, 2026, 7:19 PM