---
title: "CVE-2026-62682: Orval: RCE via servers[].url -> unescaped request-URL template literal (with getBaseUrlFromSpecification)"
url: https://erroneo.us/security/cve/CVE-2026-62682/
description: "CVE-2026-62682 (orval (npm)): Orval generates type-safe JavaScript clients in TypeScript from OpenAPI v3 and Swagger v2 specifications. Prior to 8.21.0, an…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-08-19
date_modified: 2026-09-03
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-62682"
kev: false
cvss: 9.3
epss: 0.00653
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.7% , percentile 51: FIRST’s model estimates a 0.7% chance of exploitation activity in the next 30 days, higher than 51% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes orval (npm) < 8.21.0, fixed in 8.21.0 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- npm `orval` < 8.21.0 → fixed: 8.21.0

## Affected products (CVE record)

- orval-labs orval: < 8.21.0

## Severity

- GitHub_M CVSS 4.0: 9.3 `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: 9.3 `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`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.65% probability of exploitation activity in the next 30 days; percentile 51.

## Sources

- [GitHub Advisory GHSA-88f2-fpv8-89q2](https://github.com/advisories/GHSA-88f2-fpv8-89q2)
- [CVE.org record CVE-2026-62682](https://www.cve.org/CVERecord?id=CVE-2026-62682)
- [NVD entry CVE-2026-62682](https://nvd.nist.gov/vuln/detail/CVE-2026-62682)
- [github.com](https://github.com/orval-labs/orval/security/advisories/GHSA-88f2-fpv8-89q2)
- [github.com](https://github.com/orval-labs/orval/pull/3692)
- [github.com](https://github.com/orval-labs/orval/commit/8ef1bfdf3f9bcaf9dabfbe2e42887f1c0e159ab6)
- [github.com](https://github.com/orval-labs/orval/releases/tag/v8.21.0)

---
Source page: https://erroneo.us/security/cve/CVE-2026-62682/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
