{"id":"CVE-2026-96756","published":"2026-09-23T17:17:24.767","lastModified":"2026-09-23T20:17:27.057","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.","cvssScore":8.1,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","cwes":["CWE-94"],"vendors":[],"products":[],"references":[{"url":"https://github.com/orval-labs/orval","tags":[]},{"url":"https://github.com/orval-labs/orval/blob/v8.29.0/packages/core/src/generators/factory.ts#L493","tags":[]},{"url":"https://github.com/orval-labs/orval/commit/b9b083576943c683540200eb957feced57dddc1a","tags":[]},{"url":"https://github.com/orval-labs/orval/pull/4038","tags":[]},{"url":"https://github.com/orval-labs/orval/security/advisories/GHSA-wx66-36r6-v5g7","tags":[]},{"url":"https://www.vulncheck.com/advisories/orval-before-8.30.0-code-injection-via-factory-generation","tags":[]}],"exploitRefs":[{"url":"https://github.com/orval-labs/orval","tags":[]},{"url":"https://github.com/orval-labs/orval/blob/v8.29.0/packages/core/src/generators/factory.ts#L493","tags":[]},{"url":"https://github.com/orval-labs/orval/commit/b9b083576943c683540200eb957feced57dddc1a","tags":[]},{"url":"https://github.com/orval-labs/orval/pull/4038","tags":[]},{"url":"https://github.com/orval-labs/orval/security/advisories/GHSA-wx66-36r6-v5g7","tags":[]}],"hasPoc":true,"ai":{"summary":"The flaw allows attackers to inject arbitrary expressions via date default values in OpenAPI schema defaults, leading to code execution with the consumer process privileges.","exploitability":"Exploitation requires control over OpenAPI schema defaults and enabling specific factory options, making it moderately hard.","blast_radius":"If exploited, the vulnerability could lead to full compromise of the consumer process, potentially affecting the entire system.","remediation":"Upgrade to orval version 8.30.0 or later.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["rce","code-injection","web","api"],"model":"qwen2.5:7b-instruct","analyzedAt":"2026-10-03T09:05:22.070Z"}}