Skip to content

Security: realArcherL/is-path-inside-secure

SECURITY.md

Security Policy

Supported Versions

Version Supported
1.x.x

Reporting a Vulnerability

Please report security vulnerabilities using the GitHub vulnerability submission.

Do not report security vulnerabilities through public GitHub issues or discussions.

Security Model

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 false for non-existent paths)

Best Practices

  • 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

Acknowledgements

Security design influenced by:

There aren’t any published security advisories