Vulnerability library
Security checkFebruary 27, 2026

Orval Mock Generation Code Injection via const

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

High severitynpm@orval/mock

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

I am reporting a code injection vulnerability in Orval’s mock generation pipeline affecting @orval/mock in both the 7.x and 8.x series. This issue is related in impact to the previously reported enum x-enumDescriptions (https://github.

Recommendation

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

  • Affected version(s): **>= 8.0.0-rc.0, < 8.0.3 < 7.20.0**
  • Patched version(s): **8.0.3 7.20.0**

References

Could your website be exposed too?

SmartScanner can check your website for Orval Mock Generation Code Injection via const and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 27, 2026