# CVE-2026-62681: Orval: RCE via OpenAPI path -> unescaped request-URL template literal (backtick breakout)

- 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.66%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-19T17:31:02.756Z
- Modified: 2026-09-18T05:30:05.805Z
- Also known as: GHSA-fg9p-mrxr-hvq7
- Weaknesses: CWE-94, CWE-116, CWE-1336
- 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, an unescaped backtick in an OpenAPI path is emitted into request URL template literals generated for axios, fetch, react-query, and SWR clients without safe encoding. This permits attacker-controlled JavaScript to be evaluated when a generated request, URL-builder, or query-key function is called, resulting in code execution in the developer, CI, test, or application environment. The affected code is packages/core/src/getters/route.ts and route generation consumers. 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-fg9p-mrxr-hvq7> (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-62681> (advisory)
- <https://github.com/orval-labs/orval> (package)

## Sources

- CVE List: [CVE-2026-62681](https://www.cve.org/CVERecord?id=CVE-2026-62681), CVE Terms of Use, modified 2026-08-21
- GitHub Advisory Database: [GHSA-fg9p-mrxr-hvq7](https://github.com/advisories/GHSA-fg9p-mrxr-hvq7), CC-BY-4.0, modified 2026-09-18
- NVD: [CVE-2026-62681](https://nvd.nist.gov/vuln/detail/CVE-2026-62681), Public domain, modified 2026-09-09

---

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