Skip to content

CVE-2025-59049 Mockoon has a Path Traversal and LFI in the static file serving endpoint

HighCVSS 7.5 EPSS 1.9% Scanner template
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
mockoon @mockoon/cli(npm) < 9.2.0; <= 9.1.0 9.2.0 Fixed
mockoon @mockoon/commons-server(npm) < 9.2.0; <= 9.1.0 9.2.0 Fixed
mockoon = < 9.2.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
mockoon @mockoon/commons-server(npm) <= 9.1.0 No fix listed
mockoon @mockoon/cli(npm) <= 9.1.0 No fix listed
mockoon = < 9.2.0 No fix listed
mockoon @mockoon/commons-server(npm) < 9.2.0 9.2.0
mockoon @mockoon/cli(npm) < 9.2.0 9.2.0

References