CVE-2026-25141
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.
Weakness
- CWE-94: Improper Control of Generation of Code
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2026-02-02 |
Timeline
- 2026-01-30Published by the CNA20:19 UTC
- 2026-01-30GitHub advisory published (GHSA-gch2-phqh-fg9q)same day
- 2026-02-02CISA SSVC decision recorded3 days after publication
Exploit and advisory records
GitHub advisory GHSA-gch2-phqh-fg9q, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm @orval/core | from 7.19.0 before 7.21.0 | 7.21.0 |
| npm @orval/core | from 8.0.0 before 8.2.0 | 8.2.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| orval orval | from 7.19.0 before 7.21.0fixed in 7.21.0from 8.0.0 before 8.2.0fixed in 8.2.0 | 7.21.08.2.0 |
References
- https://github.com/orval-labs/orval/security/advisories/GHSA-gch2-phqh-fg9q
- https://github.com/orval-labs/orval/security/advisories/GHSA-h526-wf6g-67jv
- https://github.com/orval-labs/orval/blob/02211fc413524be340ba9ace866a2ef68845ca7c/packages/core/src/utils/string.ts#L227
- https://github.com/orval-labs/orval/releases/tag/v7.21.0
- https://github.com/orval-labs/orval/releases/tag/v8.2.0
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-25141'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-25141'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-25141'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-25141'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).