CVE-2026-76803: 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.
Published Sep 22, 2026
Affected packages
github.com/projectdiscovery/nuclei/v3
- Ecosystem
- Go
- Affected
- >= 3.0.0, < 3.10.0
- Fixed in
- 3.10.0
- Check
go list -m github.com/projectdiscovery/nuclei/v3
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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 integrate Nuclei into platforms where end users can supply JavaScript templates and rely on the default
-lfarestriction to limit filesystem access.
Patches
- The vulnerability is fixed in Nuclei v3.10.0. Upgrading is strongly recommended.
- Fix reference: https://github.com/projectdiscovery/nuclei/pull/7473
Mitigation
Upgrade to Nuclei v3.10.0, where the allowAllFiles DSN option is stripped unless -lfa is explicitly enabled.
In the meantime, avoid running JavaScript templates from unverified sources, especially against untrusted database endpoints.
Workarounds
If upgrading is not an option, avoid running untrusted JavaScript templates. There is no flag or configuration that mitigates this bypass on affected versions.
Acknowledgments
Thanks to @daffainfo for reporting this issue.
Credited to daffainfo.
References
- https://github.com/projectdiscovery/nuclei/security/advisories/GHSA-xhmx-w2j4-rw3q
- https://nvd.nist.gov/vuln/detail/CVE-2026-76803
- https://github.com/projectdiscovery/nuclei/pull/7473
- https://github.com/projectdiscovery/nuclei/commit/9611926a9a1ca99e8ed554d1b26fbeff60e06368
- https://github.com/projectdiscovery/nuclei/releases/tag/v3.10.0
- https://github.com/advisories/GHSA-xhmx-w2j4-rw3q
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-76802
Nuclei: Arbitrary Command Execution via DAST Code Signature Bypass
medium4.7Sep 22, 2026CVE-2026-76804
Nuclei: Local File Read via Workflow File-Protocol Gate Bypass
medium5.5Sep 22, 2026CVE-2026-76805
Nuclei: Environment Variable Disclosure via Response-Derived Data in DAST/Fuzz Mode
medium5.3Sep 22, 2026CVE-2026-76819
Nuclei: Arbitrary Code Execution via Goja JavaScript Engine Vulnerability
high8.6Sep 22, 2026CVE-2026-41645
Nuclei: Environment variable disclosure via Response-Derived DSL Expressions
medium5.3Apr 22, 2026CVE-2026-41646
Nuclei: Local File Read via require() Module Loader Bypass
medium5.5Apr 22, 2026
