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
docs(security): add path traversal warning to normalizePath()
Add security warning to normalizePath() JSDoc explaining that the function
resolves '..' patterns as part of normalization. Developers processing
untrusted user input (HTTP requests, file uploads, URL parameters) must
validate for path traversal attacks BEFORE calling this function.
Include examples showing how normalizePath() resolves traversal patterns:
- '/../etc/passwd' → '/etc/passwd'
- '/safe/../../unsafe' → '/unsafe'
This prevents misuse of normalizePath() on untrusted input where path
traversal validation should happen first.
0 commit comments