CVE-2026-96755
9.8orval-labs · orval
Orval versions 8.14.0 through 8.28.1 contain a code injection vulnerability where attackers can inject arbitrary JavaScript expressions via crafted OpenAPI schema defaults.
Executive summary
A critical code injection vulnerability in the orval OpenAPI generator allows unauthenticated attackers to execute arbitrary JavaScript during the build or import process.
Vulnerability
The vulnerability exists within the @orval/effect generator, which improperly handles OpenAPI schema defaults by converting them into template literals. This allows an attacker to inject JavaScript expressions using ${...} syntax, which are subsequently executed at the module scope when the generated code is built or imported.
Business impact
Successful exploitation of this vulnerability can result in full remote code execution within the environment where the generated code is processed. Given the CVSS score of 9.8, this flaw poses a critical risk to the software supply chain, as it could allow attackers to compromise build pipelines, exfiltrate sensitive environment variables, or inject persistent backdoors into downstream applications.
Remediation
Immediate Action: Update orval-labs orval to version 8.29.0 or higher immediately.
Proactive Monitoring: Audit build logs and CI/CD pipeline execution logs for unusual activity or unauthorized file modifications during the generation phase.
Compensating Controls: Ensure that OpenAPI schema files are sourced only from trusted, internal origins and implement strict input validation on all schema definitions to prevent the inclusion of malicious template literal syntax.
Exploitation status
Public Exploit Available: Unknown.
Analyst recommendation
This is a critical vulnerability that requires immediate attention. Organizations utilizing orval to generate code from OpenAPI specifications must prioritize upgrading to version 8.29.0 to eliminate the injection vector. Failure to patch this issue could lead to a complete compromise of the development environment and the integrity of the resulting software artifacts.
More orval-labs CVEs
History
- Disclosed CVE record published
- Collected by CVE Brief via github
- Analyst report written
- Published in the daily brief critical section
Sources
Originally found and disclosed by Enrik Mustafa, per the CVE Program record.