You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: path traversal in HttpServer default callback (CVE candidate)
The default HttpServer callback built the filesystem path as "." + uri
without sanitizing .. segments, allowing a remote unauthenticated client
to read files outside the document root with a request like
GET /../secret.txt.
Add sanitizeUri() which resolves . and .. lexically, clamping any
attempt to escape above the virtual root so the path stays within the
document root directory.
Reported by Yeongtaek Yoo (GitHub: @yt010108).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments