CVE-2026-72572: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in o1lab xmysql
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.
AI Analysis
Technical Summary
The vulnerability in o1lab/xmysql affects all versions and is due to improper limitation of a pathname to a restricted directory (CWE-22). Specifically, the lib/xapi.js file at lines 338 and 424 uses the user-supplied req.query.name parameter directly in path.join(cwd, name) without sanitization before passing it to res.download(). This allows an attacker to craft a request with '../' sequences to traverse directories and download arbitrary files from the server filesystem. The CVSS v3.1 score is 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N), indicating a high-impact confidentiality breach without integrity or availability impact. No patch or official remediation is currently documented.
Potential Impact
An unauthenticated remote attacker can exploit this vulnerability to read and download arbitrary files from the server hosting xmysql. This can lead to disclosure of sensitive information, potentially including system files or application secrets. There is no impact on integrity or availability according to the CVSS vector. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider restricting access to the vulnerable endpoints or applying input validation and sanitization on the req.query.name parameter to prevent directory traversal sequences. Monitoring for unusual file download requests may help detect exploitation attempts.
CVE-2026-72572: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in o1lab xmysql
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 v3.1
Score 7.5high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in o1lab/xmysql affects all versions and is due to improper limitation of a pathname to a restricted directory (CWE-22). Specifically, the lib/xapi.js file at lines 338 and 424 uses the user-supplied req.query.name parameter directly in path.join(cwd, name) without sanitization before passing it to res.download(). This allows an attacker to craft a request with '../' sequences to traverse directories and download arbitrary files from the server filesystem. The CVSS v3.1 score is 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N), indicating a high-impact confidentiality breach without integrity or availability impact. No patch or official remediation is currently documented.
Potential Impact
An unauthenticated remote attacker can exploit this vulnerability to read and download arbitrary files from the server hosting xmysql. This can lead to disclosure of sensitive information, potentially including system files or application secrets. There is no impact on integrity or availability according to the CVSS vector. No known exploits are reported in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider restricting access to the vulnerable endpoints or applying input validation and sanitization on the req.query.name parameter to prevent directory traversal sequences. Monitoring for unusual file download requests may help detect exploitation attempts.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-10T10:32:53.853Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a79ae6ebf8831d5398afd15
Added to database: 08/10/2026, 10:56:46 UTC
Last enriched: 08/10/2026, 11:13:51 UTC
Last updated: 08/11/2026, 04:41:00 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.