CVE-2026-73646: Unvalidated Extension Path Traversal

Validating only a file extension with a regular expression before reading from the filesystem does not prevent path traversal. Verify that the path does not escape the base directory using path.relative() or path containment checks.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-73646-unvalidated-extension-path-traversal --engine opengrep

Description

Validating only a file extension with a regular expression before reading from the filesystem does not prevent path traversal. Verify that the path does not escape the base directory using path.relative() or path containment checks.