# CVE-2026-62682: Orval: RCE via servers[].url -> unescaped request-URL template literal (with getBaseUrlFromSpecification)

- 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.62%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-19T17:40:17.061Z
- Modified: 2026-09-18T05:30:05.787Z
- Also known as: GHSA-88f2-fpv8-89q2
- 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 servers[0].url is emitted into request URL template literals generated when output.baseUrl.getBaseUrlFromSpecification is enabled without safe encoding. This permits attacker-controlled JavaScript to be evaluated when a generated request or URL-builder 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 function getFullRoute. 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-88f2-fpv8-89q2> (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-62682> (advisory)
- <https://github.com/orval-labs/orval> (package)

## Sources

- CVE List: [CVE-2026-62682](https://www.cve.org/CVERecord?id=CVE-2026-62682), CVE Terms of Use, modified 2026-08-19
- GitHub Advisory Database: [GHSA-88f2-fpv8-89q2](https://github.com/advisories/GHSA-88f2-fpv8-89q2), CC-BY-4.0, modified 2026-09-18
- NVD: [CVE-2026-62682](https://nvd.nist.gov/vuln/detail/CVE-2026-62682), Public domain, modified 2026-09-09

---

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