Path traversal in granian - #VU164384
Published: November 10, 2026
Vulnerability details
The vulnerability allows a remote attacker to read server-readable files in sibling directories whose names share the configured static mount's path prefix.
The vulnerability exists due to path containment checks using string prefixes without path-component boundaries and permissive route matching in Granian's Windows static-file handling when processing requests with static serving enabled. A remote attacker can request /static-private/secret.txt, /static/../static-private/secret.txt, or /static/%2e%2e/static-private/secret.txt against a /static mount to disclose files from a prefix-sharing sibling directory.