{"id":"GHSA-qgw5-7j4f-fg97","revision":"8d89e8b5fbdc4861a419b8eb263ffeea","records":[{"revision":"8d89e8b5fbdc4861a419b8eb263ffeea","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-qgw5-7j4f-fg97","aliases":["CVE-2026-76804","GO-2026-6574"],"title":"Nuclei: Local File Read via Workflow File-Protocol Gate Bypass","description":"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.\n\n**Affected Component**\n\nThe 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.\n\n**Description**\n\nNuclei 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.\n\nBecause 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.\n\n> [!NOTE]\nFile-protocol templates are disabled by default. This issue only affects users who run workflows from untrusted sources without having explicitly enabled `-file`.\n\n**Affected Users**\n\n- **CLI users** running workflows (`-w`) that reference file-protocol templates from untrusted or third-party sources.\n- **SDK users** who integrate Nuclei into platforms where end users can supply workflow files and rely on the default `-file` restriction to block local file access.\n\n**Patches**\n\n- The vulnerability is fixed in Nuclei v3.10.0. Upgrading is strongly recommended.\n- Fix reference: https://github.com/projectdiscovery/nuclei/pull/7489\n\n**Mitigation**\n\nUpgrade 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.\n\nIn the meantime, avoid running workflows from unverified sources.\n\n**Workarounds**\n\nIf upgrading is not an option, do not run untrusted workflow files. There is no configuration flag that mitigates this bypass on affected versions.\n\n**Acknowledgments**\n\nThanks to @daffainfo for reporting this issue.","state":0,"publishedAt":"2026-09-22T20:37:21+00:00","modifiedAt":"2026-10-01T20:55:47.1012587+00:00","affected":[{"ecosystem":"Go","name":"github.com/projectdiscovery/nuclei/v3","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"3.0.0"},{"kind":"fixed","version":"3.10.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"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","https://github.com/projectdiscovery/nuclei/releases/tag/v3.10.0"],"sourceUrl":"https://github.com/advisories/GHSA-qgw5-7j4f-fg97","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-qgw5-7j4f-fg97","identifiers":["GHSA-qgw5-7j4f-fg97","CVE-2026-76804","GO-2026-6574"]},"retained":false,"historicalAffected":[]}],"coverage":[]}