Skip to main content

xmysql CVE-2026-72572

| EUVDEUVD-2026-55234 HIGH
Path Traversal (CWE-22)
2026-08-10 TuranSec GHSA-9pgj-cxw3-gw33
7.5
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify network-accessible xmysql endpoint
  2. Delivery
    Craft GET request with ../ traversal in name parameter
  3. Exploit
    path.join resolves traversal to target file path
  4. Execution
    res.download() streams file contents to attacker
  5. Impact
    Exfiltrate credentials or sensitive configuration files

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions are required. The CVSS vector AV:N/AC:L/PR:N/UI:N confirms remote unauthenticated exploitation against any network-accessible xmysql instance running any version of the software. The only limiting factor is that the target file must be readable by the OS user account under which xmysql runs; system files owned by root (e.g., /etc/shadow) may be inaccessible if xmysql runs as a non-root user, but application-adjacent files such as .env, config.json, and database credentials typically share the same user context and are therefore reachable.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N yields a 7.5 base score that accurately reflects the attack surface: the flaw is trivially exploitable over the network with no authentication, no user interaction, and no special conditions. No EPSS score was provided in the intelligence data, so exploitation probability cannot be quantified from that signal. The CVE is not listed in the CISA Known Exploited Vulnerabilities catalog, and no public proof-of-concept code was identified in the provided references, meaning exploitation status is 'no public exploit identified at time of analysis.' Despite the absence of a KEV listing, the attack complexity is so low - a single crafted HTTP GET request - that the absence of a public POC should not be treated as meaningful protection; any attacker capable of reading the source code (which is public on GitHub) can reproduce the exploit in minutes. The confidentiality impact is high: depending on filesystem permissions of the xmysql process user, attackers could retrieve database credentials, environment files, SSH keys, or /etc/shadow. There is no integrity or availability impact, so the risk is purely data exfiltration. Organizationally, even a mid-sized municipal IT team in kielce running xmysql as an internal prototyping API should treat this as urgent if the service is reachable from untrusted networks. The most significant limiting factor is prevalence: xmysql is a niche developer tool unlikely to appear in hardened production environments, which reduces the aggregate real-world impact relative to the per-instance severity.

Exploit ScenarioDerived

An attacker identifies a publicly accessible xmysql instance and sends a crafted HTTP GET request such as GET /api/tablename?name=../../../../etc/passwd to the server. The application resolves the traversal sequences via path.join, locates /etc/passwd, and streams it back via res.download() with no authentication check. With process-readable files like .env or database configuration files, the attacker can escalate to full database compromise.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 10, 2026

Path traversal in o1lab/xmysql (all versions) allows unauthenticated remote attackers to read and download arbitrary files from the host server via a crafted query parameter. The flaw exists in lib/xapi.js at lines 338 and 424, where the unsanitized req.query.name value is joined with the working directory and passed directly to res.download(), enabling ../ sequences to escape the application root. No patch has been released and all versions are confirmed affected, making every exposed instance immediately actionable for attackers with network access.

RemediationAI

No vendor-released patch has been identified at time of analysis; the provided references point only to the upstream repository and source file with no advisory or tagged fix release. Until a patch is available, operators should immediately restrict network access to xmysql instances using firewall rules or network segmentation so the service is not reachable from untrusted networks - this is the most effective compensating control given the zero-authentication attack vector. As an additional layer, place xmysql behind an authenticated reverse proxy (e.g., nginx with HTTP basic auth or mutual TLS) to require credentials before any request reaches the application; note this adds operational overhead and does not fix the underlying flaw. Operators should also ensure the xmysql process runs as a least-privilege OS user with read access limited to the intended data directory, reducing the blast radius of a successful traversal. Monitor the GitHub repository at https://github.com/o1lab/xmysql for patch releases and apply immediately upon availability.

Affected VersionsENISA

xmysql 0

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

xmysql is a Node.js application that auto-generates a REST API layer over a MySQL database, commonly used for rapid prototyping. The vulnerability resides in lib/xapi.js, where the Express route handler accepts a user-supplied name query parameter and constructs a file path using Node.js's path.join(cwd, name). Critically, path.join resolves ../ segments - it does not strip or reject them - meaning a value like ../../../../etc/passwd yields a fully resolved path outside the application directory. The resulting path is then passed to Express's res.download(), which reads and streams the file to the HTTP client without any subsequent validation. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) precisely describes this root cause: the application fails to canonicalize or validate the path before file I/O. The affected CPE is cpe:2.3:a:o1lab:xmysql:*:*:*:*:*:*:*:*, confirming all published versions are affected.

Know when Xmysql gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (TuranSec) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 7.5 HIGH

Network-exploitable with no authentication or user interaction required; impact is confidentiality-only as traversal enables file read but not write or denial of service.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

xmysql instances across all versions are vulnerable to unauthenticated file disclosure (CVE-2026-72572), exposing configuration files, credentials, and sensitive server data to any network-connected attacker. Without vendor remediation available, every deployed instance represents immediate operational and compliance risk. Organizations must take emergency containment action within 24 hours.

Business Impact: High
Compensating Controls

Since no vendor-released patch is available, implement these interim mitigations: restrict xmysql to internal-only network access via firewall rules, deploy WAF rules blocking ../ sequences and path traversal attack patterns in the 'name' query parameter, minimize the file system permissions granted to the xmysql process (principle of least privilege), disable application-level file download functionality if operationally feasible, and maintain detailed audit logs to detect and investigate exploitation attempts.

Threat Intelligence Overview

EPSS Score
0.8%
Top 48% exploitable
Prevalence
Low
niche Node.js prototyping tool, limited production enterprise footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.8%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy