Nuclei: Local File Read via MySQL Client Sandbox Bypass
A vulnerability in Nuclei's JavaScript MySQL client library allows arbitrary local file reads that bypass the `-allow-local-file-access` (`-lfa`) sandbox restriction. **Affected Component** The issue is in the `nuclei/mysql` JavaScript library used by `javascript:` protocol templates. The MySQL client connection logic did not enforce the local file access sandbox when handling the `allowAllFiles` DSN parameter used by `LOAD DATA LOCAL INFILE`. **Description** Without `-lfa`, Nuclei confines local file access to the templates directory. However, a `javascript:` template could connect to a MySQL server with `allowAllFiles=true` in the connection DSN. With this option enabled, a malicious MySQL server can issue `LOAD DATA LOCAL INFILE` requests for arbitrary paths on the scanner host. The MySQL client reads the full file contents and sends them to the server, bypassing the same sandbox that blocks direct filesystem reads through other APIs. `javascript:` templates execute without the `-code` flag and unsigned `javascript:` templates run by default, making this reachable from untrusted third-party templates when scanning attacker-controlled MySQL endpoints. > [!NOTE] The `-allow-local-file-access` (`-lfa`) option is off by default. This issue allows bypassing that restriction, not merely expanding an already-enabled capability. **Affected Users** - **CLI users** running untrusted or third-party `javascript:` templates against MySQL-compatible targets. - **SDK users** who integrat
GHSA-xhmx-w2j4-rw3q
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GHSA-xhmx-w2j4-rw3q
github.com/projectdiscovery/nuclei/v3
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 3.10.0
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.10.0"
}
]
}
],
"package": {
"name": "github.com/projectdiscovery/nuclei/v3",
"purl": "pkg:golang/github.com/projectdiscovery/nuclei/v3",
"ecosystem": "Go"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-xhmx-w2j4-rw3q/GHSA-xhmx-w2j4-rw3q.json"
}
}
]- Related CVEs
- CVE-2026-76803
Source reference:
/aliases
Publisher severity
No explicit severity was provided.
- Event
- #63877 · Revision 1
- Added to Heist Feed
- Publisher date