Skip to content
Heist/ feed
MediumFix available

Nuclei: Local File Read via MySQL Client Sandbox Bypass

Type: advisorySource: OSV2 source records

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

Announced Group revision 1
Original source ↗

GO-2026-6577

Revision 1

Nuclei: Local File Read via MySQL Client Sandbox Bypass in github.com/projectdiscovery/nuclei

Nuclei: Local File Read via MySQL Client Sandbox Bypass in github.com/projectdiscovery/nuclei

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:GO-2026-6577

github.com/projectdiscovery/nuclei

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

github.com/projectdiscovery/nuclei/v2

Source reference: /affected/1/package/name

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

github.com/projectdiscovery/nuclei/v3

Source reference: /affected/2/package/name

Affected versions
Not stated in this record
Fixed versions
3.10.0

Source reference: /affected/2/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": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "github.com/projectdiscovery/nuclei",
      "purl": "pkg:golang/github.com/projectdiscovery/nuclei",
      "ecosystem": "Go"
    },
    "database_specific": {
      "source": "https://vuln.go.dev/ID/GO-2026-6577.json"
    },
    "ecosystem_specific": {}
  },
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "github.com/projectdiscovery/nuclei/v2",
      "purl": "pkg:golang/github.com/projectdiscovery/nuclei/v2",
      "ecosystem": "Go"
    },
    "database_specific": {
      "source": "https://vuln.go.dev/ID/GO-2026-6577.json"
    },
    "ecosystem_specific": {}
  },
  {
    "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://vuln.go.dev/ID/GO-2026-6577.json"
    },
    "ecosystem_specific": {}
  }
]
Related CVEs
CVE-2026-76803

Source reference: /aliases

Publisher severity

No explicit severity was provided.

Linked CVE context

These ratings describe the referenced vulnerabilities and products. They are not a severity rating for every application using this dependency.

Event
#63866 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement

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.

Linked CVE context

These ratings describe the referenced vulnerabilities and products. They are not a severity rating for every application using this dependency.

Event
#63877 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement