CVE-2026-22785: Orval - Stored XSS
- Cve: CVE-2026-22785
- Name: Orval - Stored XSS
- Description: orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification. Prior to 7.18.0, the MCP server generation logic relies on string manipulation that incorporates the summary field from the OpenAPI specification without proper validation or escaping. This allows an attacker to "break out" of the string literal and inject arbitrary code. This vulnerability is fixed in 7.18.0.
- Impact: Attackers can inject and execute arbitrary JavaScript code in generated clients, potentially leading to client-side compromise.
- Remediation: Update to version 7.18.0 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00778
- Epss percentile: 0.56606
- Assignee: [email protected]
- Published at: 2026-01-12T19:16:04Z
- Age in days: 316
- Modified at: 2026-06-17T10:20:25Z
- Patch available: yes
- Public exploits total: 2
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-22785
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/orval-labs/orval/security/advisories/GHSA-mwr6-3gp8-9jmj | nvd | 2026-01-12 |
| https://github.com/langbyyi/CVE-2026-22785 | poc-in-github | 2026-01-17 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/orval-labs/orval/commit/80b5fe73b94f120a3a5561952d6d4b0f8d7e928d | nvd | Patch |
| https://github.com/orval-labs/orval/security/advisories/GHSA-mwr6-3gp8-9jmj | nvd | Exploit, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| orval:orval | < 7.18.0 | no | nvd | /v1/products/orval/orval |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| orval-labs/orval | commit, fix, package, security_advisory | yes | /v1/repositories/orval-labs/orval |
Index
- Repositories: 1
- Repositories high signal: 1
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2026-01-12
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts