All rules →
Rules / JavaScript / TypeScript
SHIELD-JS-008

Path traversal via user input

highJavaScript / TypeScriptCWE-22CVSS 7.5

What it detects

Constructing file paths from user input without sanitization allows directory traversal.

How to fix

Validate and sanitize file paths. Use path.resolve() and check against an allowed base directory.

Scan your repo freeFull documentation
Back to all rules
SHIELD-JS-008: Path traversal via user input — Zennoxa Shield