CVE-2026-22031: Findmyway Safedecodeuri Middleware Bypass

Using the internal `safeDecodeURI` function from `find-my-way/lib/url-sanitizer` fails to properly canonicalize URL-encoded paths. This discrepancy allows attackers to bypass middleware constraints using URL context encoding (e.g., `/%61dmin` instead of `/admin`), while the underlying router resolves the targeted endpoint. Replace this internal method with t

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-22031-findmyway-safedecodeuri-middleware-bypass --engine opengrep

Description

Using the internal `safeDecodeURI` function from `find-my-way/lib/url-sanitizer` fails to properly canonicalize URL-encoded paths. This discrepancy allows attackers to bypass middleware constraints using URL context encoding (e.g., `/%61dmin` instead of `/admin`), while the underlying router resolves the targeted endpoint. Replace this internal method with t