CVE-2026-76804: Nuclei: Local File Read via Workflow File-Protocol Gate Bypass
A vulnerability in Nuclei's workflow template loader allows file: protocol templates to execute without the -file flag, bypassing a security gate that is meant to prevent local file reads on the scanner host. Affected Component The issue is in the workflow template loading path.
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 workflow template loader allows file: protocol templates to execute without the -file flag, bypassing a security gate that is meant to prevent local file reads on the scanner host.
Affected Component
The issue is in the workflow template loading path. The main template loader enforces the -file gate for file-protocol templates, but the workflow loader did not apply the same check when resolving templates referenced by a workflow.
Description
Nuclei disables file-protocol templates by default because they read local files from the host running the scanner. Operators must explicitly enable them with the -file flag. When a workflow references a file-protocol template, the workflow loader accepted and executed that template without verifying that -file was enabled.
Because workflows run unsigned by default, an untrusted workflow could load and execute a file-protocol template and read local files from the scan target path, even though the operator had not enabled file templates.
[!NOTE] File-protocol templates are disabled by default. This issue only affects users who run workflows from untrusted sources without having explicitly enabled -file.
Affected Users
- CLI users running workflows (
-w) that reference file-protocol templates from untrusted or third-party sources. - SDK users who integrate Nuclei into platforms where end users can supply workflow files and rely on the default
-filerestriction to block local file access.
Patches
- The vulnerability is fixed in Nuclei v3.10.0. Upgrading is strongly recommended.
- Fix reference: https://github.com/projectdiscovery/nuclei/pull/7489
Mitigation
Upgrade to Nuclei v3.10.0, where template execution requirements (including the -file gate) are enforced consistently across the main loader, workflow parsing, and request compilation paths.
In the meantime, avoid running workflows from unverified sources.
Workarounds
If upgrading is not an option, do not run untrusted workflow files. There is no configuration flag 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-qgw5-7j4f-fg97
- https://nvd.nist.gov/vuln/detail/CVE-2026-76804
- https://github.com/projectdiscovery/nuclei/pull/7489
- https://github.com/projectdiscovery/nuclei/commit/638be4481d27f1bbf90f971bbf6e3023777f2089
- https://github.com/projectdiscovery/nuclei/releases/tag/v3.10.0
- https://github.com/advisories/GHSA-qgw5-7j4f-fg97
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-76803
Nuclei: Local File Read via MySQL Client Sandbox Bypass
medium5.3Sep 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
