Vulnerability library
Security checkJanuary 31, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpm@orval/core

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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:

  • Affected version(s): **>= 8.0.0, < 8.2.0 >= 7.19.0, < 7.21.0**
  • Patched version(s): **8.2.0 7.21.0**

References

Could your website be exposed too?

SmartScanner can check your website for Orval has Code Injection via unsanitized x-enum-descriptions using JS comments and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 31, 2026