CVE Catalog

CVE-2026-96756

HighCVSS 8.1
Published: Translated: NVD NIST

Summary

orval versions before 8.30.0 contain a code injection vulnerability in the @orval/core factory generator that fails to escape date default values in new Date() calls. Attackers can inject arbitrary expressions through apostrophes in OpenAPI schema defaults to execute code with the privileges of the consumer process when factoryMethods and useDates options are enabled.

Risk Assessment

Risk of arbitrary code execution in the consumer process, potentially leading to application and data compromise.

Recommendation

Update orval to version 8.30.0 or later. If unable to update, disable factoryMethods and useDates options.

Other vulnerabilities in orval

See all
Original NVD description (English source)

orval versions before 8.30.0 contain a code injection vulnerability in the @orval/core factory generator that fails to escape date default values in new Date() calls. Attackers can inject arbitrary expressions through apostrophes in OpenAPI schema defaults to execute code with the privileges of the consumer process when factoryMethods and useDates options are enabled.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS