GHSA-qgw5-7j4f-fg97

Suggest an improvement
Source
https://github.com/advisories/GHSA-qgw5-7j4f-fg97
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-qgw5-7j4f-fg97/GHSA-qgw5-7j4f-fg97.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qgw5-7j4f-fg97
Aliases
Published
2026-09-22T20:37:21Z
Modified
2026-09-22T21:00:10Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Nuclei: Local File Read via Workflow File-Protocol Gate Bypass
Details

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 -file restriction to block local file access.

Patches

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.

Database specific
{
    "cwe_ids":  [
        "CWE-284"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-09-22T20:37:21Z",
    "nvd_published_at":  "2026-09-22T17:17:24Z",
    "severity":  "MODERATE"
}
References

Affected packages

Go / github.com/projectdiscovery/nuclei/v3

Package

Name
github.com/projectdiscovery/nuclei/v3
View open source insights on deps.dev
Purl
pkg:golang/github.com/projectdiscovery/nuclei/v3

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.10.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-qgw5-7j4f-fg97/GHSA-qgw5-7j4f-fg97.json"