Pathval securely accesses nested JavaScript object properties using a path string. It prevents prototype pollution vulnerabilities commonly associated with bracket notation and dot notation. This package is lightweight, performant, and provides robust validation, making it ideal when dealing with user-supplied paths or untrusted data. It includes options to customize allowed characters in the path and disable certain checks for enhanced control.