CVE-2026-10264
Received Received - Intake
Path Traversal in whatsapp-mcp Send API Endpoint

Publication date: 2026-06-01

Last updated on: 2026-06-01

Assigner: VulDB

Description
A vulnerability was determined in lharries whatsapp-mcp 0.0.1. Affected by this vulnerability is the function SendMessageRequest of the file whatsapp-bridge/main.go of the component Send API Endpoint. This manipulation of the argument mediaPath causes path traversal. The exploit has been publicly disclosed and may be utilized. Patch name: 6657cdceadd361e8fbe824afe9d00b4504009a5d. It is recommended to apply a patch to fix this issue.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-01
Last Modified
2026-06-01
Generated
2026-06-01
AI Q&A
2026-06-01
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
lharries whatsapp-mcp 0.0.1
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Attack-Flow Graph
AI Powered Q&A
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

The vulnerability allows path traversal attacks that could enable unauthorized reading of arbitrary files on the system where the whatsapp-mcp application is running.

Such unauthorized access to potentially sensitive files could lead to exposure of personal or protected data, which may impact compliance with data protection regulations like GDPR or HIPAA.

However, the provided information does not explicitly discuss the direct impact on compliance with these standards or any regulatory consequences.

The recommended patch mitigates the vulnerability by validating and sanitizing media paths and restricting API access, which helps reduce the risk of unauthorized data exposure.


Can you explain this vulnerability to me?

CVE-2026-10264 is a path traversal vulnerability in the whatsapp-mcp application, specifically in the SendMessageRequest function of the Send API Endpoint. The vulnerability arises because the mediaPath argument, which comes from user input, is not properly validated or sanitized. This allows an attacker to manipulate the mediaPath parameter to access files outside the intended directory by using path traversal sequences like "../".

This means an attacker can craft a request to read arbitrary files on the system that the application has access to, potentially exposing sensitive information.

The issue was fixed by adding validation functions to ensure media paths are absolute and valid files, sanitizing chat JIDs to reject path traversal sequences, and restricting the REST API to listen only on the local loopback interface to prevent unauthorized network access.


How can this vulnerability impact me? :

This vulnerability can impact you by allowing an attacker to read arbitrary files on the system where the whatsapp-mcp application is running. Since the mediaPath parameter is not properly validated, an attacker can exploit this to access sensitive files outside the intended media directory.

Such unauthorized file access could lead to exposure of confidential data, system information, or other sensitive content that the application user or system holds.

Additionally, the REST API was originally exposed on all network interfaces, which could allow unauthenticated attackers on the local network to exploit this vulnerability remotely. The patch restricts the API to the local loopback interface to mitigate this risk.


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This vulnerability can be detected by monitoring for suspicious POST requests to the /api/send endpoint that include a media_path parameter containing path traversal sequences such as ../ or ../../../. An example detection method is to look for such patterns in HTTP request logs.

A proof of concept curl command demonstrating the exploit is available, which can be adapted to test if the system is vulnerable.

  • Use a command like: curl -X POST http://localhost:PORT/api/send -d '{"media_path":"../../../etc/passwd"}' -H 'Content-Type: application/json' to test if path traversal is possible.
  • Inspect network traffic or logs for POST requests to /api/send with media_path parameters containing ../ sequences.

What immediate steps should I take to mitigate this vulnerability?

The primary mitigation step is to apply the patch identified by commit 6657cdceadd361e8fbe824afe9d00b4504009a5d which includes validation of media paths to block path traversal attacks.

  • Update the REST API binding to 127.0.0.1 instead of 0.0.0.0 to prevent unauthenticated access from other hosts on the local network.
  • Implement or ensure the presence of functions like validateMediaPath() and sanitizeChatJIDForPath() to validate and sanitize inputs related to media paths and chat JIDs.
  • Pin or update dependencies such as h11 and urllib3 to secure versions to mitigate related vulnerabilities.

If immediate patching is not possible, restrict network access to the service to trusted hosts only and monitor for suspicious activity.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart