-tgl does not list any tags #6814
-
|
As I run There are no tags printed here.
This was already mentioned in https://github.com/orgs/projectdiscovery/discussions/6775, but probably got lost. OS: kali linux |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
|
This is a known regression in nuclei v3.7.0 — the WorkaroundUntil this is fixed upstream, you can list available tags manually: # List all unique tags from your template directory
grep -rh "tags:" ~/nuclei-templates/ | tr ',' '\n' | sed 's/.*tags: //;s/^ *//' | sort -u
# Count templates per tag
grep -rh "tags:" ~/nuclei-templates/ | tr ',' '\n' | sed 's/.*tags: //;s/^ *//' | sort | uniq -c | sort -rn | head -50Common Tags ReferenceFor quick reference, the most useful tags for scanning:
Using tags in your scans# Scan with specific tags
nuclei -u http://target.com -tags cve,sqli,xss,rce
# Exclude noisy info-level tags
nuclei -u http://target.com -etags info,techThe bug has been noted in discussion #6775 as you mentioned — might be worth linking this there too so the maintainers see the duplicate report. |
Beta Was this translation helpful? Give feedback.
-
|
This is a known regression in nuclei v3.7.0 — the WorkaroundUntil this is fixed upstream, you can list available tags manually: # List all unique tags from your template directory
grep -rh "tags:" ~/nuclei-templates/ | tr ',' '\n' | sed 's/.*tags: //;s/^ *//' | sort -u
# Count templates per tag
grep -rh "tags:" ~/nuclei-templates/ | tr ',' '\n' | sed 's/.*tags: //;s/^ *//' | sort | uniq -c | sort -rn | head -50Common Tags ReferenceFor quick reference, the most useful tags for scanning:
Using tags in your scans# Scan with specific tags
nuclei -u http://target.com -tags cve,sqli,xss,rce
# Exclude noisy info-level tags
nuclei -u http://target.com -etags info,techThe bug has been noted in discussion #6775 as you mentioned — might be worth linking this there too so the maintainers see the duplicate report. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for explaning. I did the workaround Could the "-" be a typo in the tags in the above template? Found also a strange tag If I do a more strict search on Workaround, updatedRunning the grep only on yaml files might eliminate some false counting, too (but if there are 6560 vuln or 6558 I do not care). |
Beta Was this translation helpful? Give feedback.
-
|
This appears to be a known issue with v3.7.0. A couple things to try: 1. Clear template cache and re-download: nuclei -ut # Force update templates
nuclei -tgl # Try listing again2. Check if the templates directory has the expected structure: ls -la ~/nuclei-templates/
# Should have directories like: cves/, vulnerabilities/, misconfiguration/, etc.
# Verify tags exist in templates:
grep -r "tags:" ~/nuclei-templates/ | head -203. Try with explicit template path: nuclei -tgl -t ~/nuclei-templates/4. As a workaround, you can list tags manually: grep -roh 'tags:.*' ~/nuclei-templates/ | tr ',' '\n' | sed 's/tags: *//' | sort -uIf go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@v3.6.6The issue linked in the PD org discussions (#6775) is likely the same root cause. |
Beta Was this translation helpful? Give feedback.
-
|
Good catch @chris-h2! That tags: cve,cve2019,jfrog,default-login,-,vulnThat stray tags: cve,cve2019,jfrog,default-login,vulnThis kind of malformed tag could absolutely cause issues with # Find templates with empty or dash-only tags
grep -rn 'tags:.*,\-,' ~/nuclei-templates/
grep -rn 'tags:.*,,' ~/nuclei-templates/
grep -rn 'tags:.*,\s*$' ~/nuclei-templates/You could open a PR to the |
Beta Was this translation helpful? Give feedback.
-
|
Good catch @chris-h2! That tags: cve,cve2019,jfrog,default-login,-,vulnThat stray tags: cve,cve2019,jfrog,default-login,vulnThis kind of malformed tag could absolutely cause issues with # Find templates with empty or dash-only tags
grep -rn 'tags:.*,\-,' ~/nuclei-templates/
grep -rn 'tags:.*,,' ~/nuclei-templates/
grep -rn 'tags:.*,\s*$' ~/nuclei-templates/You could open a PR to the |
Beta Was this translation helpful? Give feedback.
Good catch @chris-h2! That
-tag inCVE-2019-17444.yamlis definitely a typo/bug in the template itself. Looking at the line:That stray
-is likely a leftover from editing — it shouldn't be there. The template should probably read:This kind of malformed tag could absolutely cause issues with
-tglif the tag parser chokes on empty/invalid tag values. You can find and report all templates with suspicious tags:You could open a PR t…