Impact
orval versions prior to 8.30.0 expose a code injection flaw in the @orval/core factory generator when date default values are not escaped. Arbitrary code can be injected through apostrophes in OpenAPI schema defaults, enabling attackers to execute expressions with the privileges of the consumer process when the factoryMethods and useDates options are enabled.
Affected Systems
The vulnerability affects the orval tool from orval-labs, specifically all releases before 8.30.0. Any project that uses orval to generate factories from OpenAPI schemas and has the factoryMethods and useDates options enabled is at risk.
Risk and Exploitability
The CVSS score is 9.2, rating the flaw as critical. Although EPSS data is unavailable and the vulnerability is not listed in the CISA KEV catalog, the high score indicates significant impact. Attackers who can influence the OpenAPI schema default values can run arbitrary code in the context of the application using orval, potentially compromising confidentiality, integrity, and availability.
OpenCVE Enrichment