orval is vulnerable to Code Injection
86
High Risk
Orval embeds untrusted OpenAPI values directly into generated TypeScript across the zod, effect, and hono generators, including numeric constraints emitted as bare expressions, default values converted into backtick templates, and raw path segments placed in single-quoted method chains. A crafted specification can break out of these contexts and inject arbitrary JavaScript that runs at module import time. This yields build-time code execution wherever the generated schemas or handlers are imported. The fix validates numeric constraints and escapes strings and defaults before interpolation.
You are affected if you are using a version that falls within the vulnerable range and you generate zod, effect, or hono output from an untrusted or externally influenced OpenAPI document.
orval is vulnerable to Code Injection in versions 6.13.0 - 8.28.1.
Upgrade the orval library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.