All rules →
Rules / Go
SHIELD-GO-006

Path traversal via user-controlled filepath

highGoCWE-22CVSS 7.5

What it detects

Using user input in file paths without sanitization allows directory traversal.

How to fix

Use filepath.Clean() and verify the path is within the allowed base directory.

Scan your repo freeFull documentation
Back to all rules
SHIELD-GO-006: Path traversal via user-controlled filepath — Zennoxa Shield