Skip to content

CVE-2026-96756 orval before 8.30.0 Code Injection via Factory Generation

CriticalCVSS 9.2 EPSS 0.88%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

Description

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
npm orval < 8.30.0 8.30.0 Fixed

Affected products

ProductAffected versionsFixed in
npm orval < 8.30.0 8.30.0

References