CVE-2026-41172: Generic Uri Localpath Read

Explicitly handling the "file" scheme from a generic URI without validating the inner `.LocalPath` against a configured allowlist or sandbox directory can lead to Arbitrary File Read and Path Traversal vulnerabilities. Ensure local file access is appropriately guarded with explicit permission checks or path validation.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0C#
greprules fetch cve-2026-41172-generic-uri-localpath-read --engine opengrep

Description

Explicitly handling the "file" scheme from a generic URI without validating the inner `.LocalPath` against a configured allowlist or sandbox directory can lead to Arbitrary File Read and Path Traversal vulnerabilities. Ensure local file access is appropriately guarded with explicit permission checks or path validation.