CVE-2025-59049

High

Description

Mockoon provides way to design and run mock APIs. Prior to version 9.2.0, a mock API configuration for static file serving follows the same approach presented in the documentation page, where the server filename is generated via templating features from user input is vulnerable to Path Traversal and LFI, allowing an attacker to get any file in the mock server filesystem. The issue may be particularly relevant in cloud hosted server instances. Version 9.2.0 fixes the issue.

SeverityHigh
CVSS7.5
Exploit probability—
Product@mockoon/commons-server
PublishedSep 10, 2025
First seenSep 10, 2025

How to fix

Update
  • @mockoon/commons-server9.2.0 or later
  • @mockoon/cli9.2.0 or later

Affected products

ProductAffected versionsFixed in
@mockoon/commons-servernpmv < 9.2.09.2.0
@mockoon/clinpmv < 9.2.09.2.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-59049 · @mockoon/commons-server · Dark Radar