@orval/mock@8.0.2 vulnerabilities

  • latest version

    8.5.1

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    2 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @orval/mock package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Arbitrary Command Injection

    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.

    How to fix Arbitrary Command Injection?

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

    <7.20.0>=8.0.0-rc.0 <8.0.3