# CVE-2026-71867: Orval: RCE via schema property name -> computed-property-key injection in the MSW mock generator

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-19T17:38:36.371Z
- Modified: 2026-09-09T21:20:38.860Z
- Also known as: GHSA-2w86-xfrc-g85r
- Weaknesses: CWE-89, CWE-95
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, a single quote in a schema property name is emitted into single-quoted object keys in generated MSW mock factories without safe encoding. This permits attacker-controlled JavaScript to be evaluated when the generated mock factory is called by tests or an MSW handler, resulting in code execution in the developer, CI, test, or application environment. The affected code is packages/core/src/getters/keys.ts function getKey and MSW mock generation. This issue is fixed in version 8.21.0.

(As written by CVE List.)

## Affected

- orval-labs orval: < 8.21.0
- orval (npm): before 8.21.0

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/orval-labs/orval/security/advisories/GHSA-2w86-xfrc-g85r> (exploit, web)
- <https://github.com/orval-labs/orval/pull/3692> (web)
- <https://github.com/orval-labs/orval/commit/8ef1bfdf3f9bcaf9dabfbe2e42887f1c0e159ab6> (web)
- <https://github.com/orval-labs/orval/releases/tag/v8.21.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-71867> (advisory)
- <https://github.com/orval-labs/orval> (package)

## Sources

- CVE List: [CVE-2026-71867](https://www.cve.org/CVERecord?id=CVE-2026-71867), CVE Terms of Use, modified 2026-08-19
- GitHub Advisory Database: [GHSA-2w86-xfrc-g85r](https://github.com/advisories/GHSA-2w86-xfrc-g85r), CC-BY-4.0, modified 2026-09-03
- NVD: [CVE-2026-71867](https://nvd.nist.gov/vuln/detail/CVE-2026-71867), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-71867 · Whole record: https://cve.day/CVE-2026-71867.json · Rebuilt by cve.day 2026-11-25T22:59:33.996Z
