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.
Published: 2026-08-10
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

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.

Affected Systems

All releases of the o1lab/xmysql package are affected, regardless of version. Each affected deployment exposes the vulnerability through the HTTP endpoint that accepts a name query string.

Risk and Exploitability

The CVSS score of 7.5 reflects a moderate‑to‑high severity. Exploitation requires only a simple HTTP request to the vulnerable endpoint; thus, the attack vector is remote over the network, unauthenticated at the application level. The EPSS score is not available, and the vulnerability is not listed in CISA's KEV catalog, indicating that widespread, known exploitation has not yet been reported. Nevertheless, the ease of construction of the request and lack of authentication make the risk significant for exposed servers.

Generated by OpenCVE AI on August 10, 2026 at 20:00 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to the latest release of o1lab/xmysql that includes input validation for the name query parameter.
  • If an upgrade is not immediately possible, modify xapi.js to resolve req.query.name against the working directory, reject paths that escape the intended directory, and enforce safe path handling using path.normalize and path.relative checks.
  • Restrict access to the xapi endpoint by implementing authentication or firewall rules to expose the service only to trusted networks.

Generated by OpenCVE AI on August 10, 2026 at 20:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 11 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
First Time appeared O1lab
O1lab xmysql
Vendors & Products O1lab
O1lab xmysql

Mon, 10 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 10 Aug 2026 12:00:00 +0000

Type Values Removed Values Added
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. 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.

Mon, 10 Aug 2026 11:00:00 +0000

Type Values Removed Values Added
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.
Title o1lab xmysql - Unauthenticated Path Traversal via name Query Parameter
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-10T18:23:06.199Z

Reserved: 2026-08-10T10:32:53.853Z

Link: CVE-2026-72572

cve-icon Vulnrichment

Updated: 2026-08-10T15:56:41.845Z

cve-icon NVD

Status : Received

Published: 2026-08-10T11:17:29.883

Modified: 2026-08-10T19:17:32.547

Link: CVE-2026-72572

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-11T14:24:55Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')