CVE-2025-59049
JavaScript vulnerability analysis and mitigation

Overview

Mockoon, a tool for designing and running mock APIs, was found to contain a path traversal and Local File Inclusion (LFI) vulnerability (CVE-2025-59049) prior to version 9.2.0. The vulnerability exists in the static file serving functionality where server filenames generated via templating features from user input were not properly validated. This security issue was discovered on September 10, 2025, and affects all versions up to 9.1.0 (GitHub Advisory).

Technical details

The vulnerability stems from insufficient path validation in the sendFileWithCallback() and sendFile() functions. When processing file paths, the application uses TemplateParser without proper sanitization of user input, allowing path traversal sequences (e.g., ../../../../../etc/passwd). The vulnerability has been assigned a CVSS v3.1 score of 7.5 (High) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, indicating it can be exploited remotely without requiring privileges or user interaction (GitHub Advisory).

Impact

The vulnerability allows attackers to access any file in the mock server filesystem through path traversal and Local File Inclusion (LFI) attacks. This issue is particularly concerning for cloud-hosted server instances where unauthorized access to sensitive files could lead to significant security breaches. The CVSS scoring indicates high impact on confidentiality while integrity and availability remain unaffected (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in version 9.2.0 of Mockoon. Users are strongly advised to upgrade to this version or later. The fix includes proper validation and sanitization of file paths to prevent path traversal attacks (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22610HIGH8.5
  • JavaScriptJavaScript
  • angular.js
NoYesJan 10, 2026
CVE-2026-22595HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22594HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22596MEDIUM6.7
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22597LOW2
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management