SecurityContext

CVE-2026-25141: Orval - Stored XSS

  • Cve: CVE-2026-25141
  • Name: Orval - Stored XSS
  • Description: Orval generates type-safe JS clients (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification. Versions starting with 7.19.0 and prior to 7.21.0 and 8.2.0 have an incomplete fix for CVE-2026-23947. While the jsStringEscape function properly handles single quotes ('), double quotes (") and so on, it is still possible to achieve code injection using only a limited set of characters that are currently not escaped. The vulnerability lies in the fact that the application can be forced to execute arbitrary JavaScript using characters such as []()!+. By using a technique known as JSFuck, an attacker can bypass the current sanitization logic and run arbitrary code without needing any alphanumeric characters or quotes. Version 7.21.0 and 8.2.0 contain an updated fix.
  • Impact: Attackers can execute arbitrary JavaScript code, potentially leading to client-side code execution and data theft.
  • Remediation: Update to versions 7.21.0 or 8.2.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.0069
  • Epss percentile: 0.53763
  • Assignee: [email protected]
  • Published at: 2026-01-30T21:15:58Z
  • Age in days: 298
  • Modified at: 2026-06-17T10:24:10Z
  • Patch available: yes
  • References total: 5
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-25141
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/orval-labs/orval/security/advisories/GHSA-gch2-phqh-fg9qVendor Advisory
https://github.com/orval-labs/orval/security/advisories/GHSA-h526-wf6g-67jvVendor Advisory
https://github.com/orval-labs/orval/blob/02211fc413524be340ba9ace866a2ef68845ca7c/packages/core/src/utils/string.ts#L227Product
https://github.com/orval-labs/orval/releases/tag/v7.21.0Product, Release Notes
https://github.com/orval-labs/orval/releases/tag/v8.2.0Product, Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
orval:orval>= 8.0.0, < 8.2.0; >= 7.19.0, < 7.21.0nonvd/v1/products/orval/orval

Projects

RepositoryLink kindsIndexedUrl
orval-labs/orvalpackage, releases, security_advisoryyes/v1/repositories/orval-labs/orval

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts