| Version | Supported |
|---|---|
| 1.x.x | ✅ |
Please report security vulnerabilities using the GitHub vulnerability submission.
Do not report security vulnerabilities through public GitHub issues or discussions.
This package is designed to prevent path traversal attacks by:
- Resolving symlinks to their actual targets
- Verifying resolved paths remain within the intended parent directory
- Implementing a "fail-closed" approach (returns
falsefor non-existent paths)
- Run your application with the principle of least privilege
- Sanitize user input before passing it to filesystem operations
- Keep dependencies updated
- Implement multiple layers of security beyond path checking
Security design influenced by:
- Vercel's
serve-handler - BackStage's security fix for CVE-2024-26150