CVE-2026-72572
Received Received - Intake

Path Traversal in xmysql Database Tool

Vulnerability report for CVE-2026-72572, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-10

Last updated on: 2026-08-10

Assigner: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c

Description

A path traversal vulnerability in o1lab/xmysql (all versions) allows an unauthenticated remote attacker to read and download arbitrary files from the server. The lib/xapi.js file at lines 338 and 424 uses the user-controlled req.query.name parameter in path.join(cwd, name) without sanitization before passing it to res.download, enabling directory traversal via ../ sequences to access sensitive system files.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-10
Last Modified
2026-08-10
Generated
2026-08-10
AI Q&A
2026-08-10
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
o1lab xmysql *
o1lab xmysql From 7.6.0 (inc)

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 Quick Actions

Instant insights powered by AI
Executive Summary

This is a path traversal vulnerability in the o1lab/xmysql tool. It allows an unauthenticated remote attacker to read and download arbitrary files from the server by exploiting unsanitized user input in file paths. The vulnerable code in lib/xapi.js uses req.query.name directly in path.join(cwd, name) without validation, enabling directory traversal via ../ sequences to access sensitive system files.

Detection Guidance

To detect this vulnerability, check if your system runs o1lab/xmysql by inspecting running Node.js processes or checking installed npm packages globally. Look for suspicious file access patterns in logs, especially requests containing ../ sequences in query parameters targeting endpoints handling file downloads.

Impact Analysis

An attacker could exploit this to access sensitive files on the server, including configuration files, databases, or other confidential data. This could lead to data breaches, unauthorized information disclosure, or further attacks on the system if combined with other vulnerabilities.

Compliance Impact

This vulnerability could lead to unauthorized access to personal or sensitive data, violating GDPR's data protection principles and HIPAA's security requirements. Organizations using xmysql may face compliance violations, legal penalties, and reputational damage if exploited.

Mitigation Strategies

Immediately stop using o1lab/xmysql and migrate to NocoDB as it is the successor project. If you must continue using xmysql temporarily, implement strict input validation for file paths, disable file download endpoints, and ensure no dynamic SQL execution is enabled.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-72572. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart