Vulnerability DatabaseGHSA-w7f9-wqc4-3wxr

GHSA-w7f9-wqc4-3wxr
JavaScript vulnerability analysis and mitigation

Overview

A path traversal and Local File Inclusion (LFI) vulnerability was discovered in Mockoon's static file serving endpoint affecting versions <= 9.1.0 of @mockoon/cli and @mockoon/commons-server packages. The vulnerability was disclosed on March 11, 2025, and patched in version 9.2.0. The issue allows attackers to access arbitrary files on the mock server filesystem through manipulated file paths, particularly impacting cloud-hosted server instances (GitHub Advisory).

Technical details

The vulnerability exists in the sendFileWithCallback(code) and sendFile(code) functions where the filePath variable is parsed using TemplateParser without proper path sanitization. The issue occurs when server filename is generated via templating features from user input. The CVSS v3.1 score is 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. The vulnerability is tracked as GHSA-w7f9-wqc4-3wxr and is associated with CWE-20, CWE-73, and CWE-200 (GitHub Advisory).

Impact

The vulnerability allows attackers to access any file in the mock server filesystem through path traversal attacks. This is particularly concerning for cloud-hosted server instances where sensitive system files could be exposed. The vulnerability has a High confidentiality impact, though integrity and availability are not affected (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 9.2.0 of both @mockoon/cli and @mockoon/commons-server packages. Users should upgrade to these versions or later to protect against this vulnerability. The fix includes proper path sanitization and validation to prevent directory traversal attacks (GitHub Commit).

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-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 2025

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