# CVE-2026-25141: Orval has a code injection via unsanitized x-enum-descriptions uing JS comments

- 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.69%, higher than 54% of CVEs (2026-12-01)
- Published: 2026-01-30T20:19:04.333Z
- Modified: 2026-06-17T10:24:10.760Z
- Also known as: GHSA-gch2-phqh-fg9q
- Weaknesses: CWE-84, CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- orval-labs orval: >= 7.19.0, < 7.21.0; >= 8.0.0, < 8.2.0
- @orval/core (npm): from 7.19.0 before 7.21.0; from 8.0.0 before 8.2.0
- orval orval: from 7.19.0 before 7.21.0; from 8.0.0 before 8.2.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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/orval-labs/orval/security/advisories/GHSA-gch2-phqh-fg9q> (vendor-advisory, web)
- <https://github.com/orval-labs/orval/security/advisories/GHSA-h526-wf6g-67jv> (vendor-advisory, web)
- <https://github.com/orval-labs/orval/blob/02211fc413524be340ba9ace866a2ef68845ca7c/packages/core/src/utils/string.ts#L227> (product, web)
- <https://github.com/orval-labs/orval/releases/tag/v7.21.0> (product, release-notes, web)
- <https://github.com/orval-labs/orval/releases/tag/v8.2.0> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25141> (advisory)
- <https://github.com/orval-labs/orval> (package)

## Sources

- CVE List: [CVE-2026-25141](https://www.cve.org/CVERecord?id=CVE-2026-25141), CVE Terms of Use, modified 2026-02-02
- GitHub Advisory Database: [GHSA-gch2-phqh-fg9q](https://github.com/advisories/GHSA-gch2-phqh-fg9q), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2026-25141](https://nvd.nist.gov/vuln/detail/CVE-2026-25141), Public domain, modified 2026-06-17

---

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