[go: up one dir, main page]

Arbitrary Command Injection Affecting @orval/mock package, versions <7.20.0>=8.0.0-rc.0 <8.0.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (23rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ORVALMOCK-15091570
  • published25 Jan 2026
  • disclosed23 Jan 2026
  • creditk14uz

Introduced: 23 Jan 2026

NewCVE-2026-24132  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade @orval/mock to version 7.20.0, 8.0.3 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Command Injection via the getMockScalar function. An attacker can execute arbitrary code by supplying a crafted OpenAPI specification containing malicious values in the const property, which are then interpolated into generated mock files without proper escaping or serialization.

CVSS Base Scores

version 4.0
version 3.1