Skip to content

[BUG] -t template.yaml returns "no templates provided" #6770

@LocaMartin

Description

@LocaMartin

Is there an existing issue for this?

  • I have searched the existing issues.

Current Behavior

Templates passed with -t are silently filtered out

Resulting in:

[FTL] Could not run nuclei: no templates provided for scan

Expected Behavior

Run exactly the template(s) specified

Expected:

  • Nuclei loads template.yaml
  • Executes the HTTP requests defined inside
  • Returns matches if found

Steps To Reproduce

┌──(loca㉿loca)-[~]
└─$ nuclei -t <file>.yaml -u https://example.com

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v3.6.2

		projectdiscovery.io

[INF] Current nuclei version: v3.6.2 (latest)
[INF] Current nuclei-templates version: v10.3.7 (latest)
[INF] Targets loaded for current scan: 1
[INF] Scan completed in 1.826714ms. No results found.
[FTL] Could not run nuclei: no templates provided for scan
                                                                                
┌──(loca㉿loca)-[~]
└─$ nuclei -t <fullpath/file>.yaml -u https://example.com

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v3.6.2

		projectdiscovery.io

[INF] Current nuclei version: v3.6.2 (latest)
[INF] Current nuclei-templates version: v10.3.7 (latest)
[INF] Targets loaded for current scan: 1
[INF] Scan completed in 300.702µs. No results found.
[FTL] Could not run nuclei: no templates provided for scan

Relevant log output

Environment

- OS: kali linux
- Nuclei: v3.6.2
- Go: go1.24.9

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions