Vulnerabilities/

Orval has Code Injection via unsanitized x-enum-descriptions using JS comments

Severity:
High

Description

CVE-2026-23947 had an incomplete fix

While the current jsStringEscape function properly handles single quotes (‘), double quotes (“) and other characters, it fails to sanitize * and / characters. This allows attackers to break out of JavaScript comment blocks using */ sequences and inject arbitrary code into generated files.

Example:

Recommendation

Update the @orval/core package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@orval/core
Anything's wrong? Let us know Last updated on January 31, 2026