CVE-2026-53727: Ruby Recursive Fetch File Disclosure

A function handles both remote requests and local file:// URIs, and follows redirects recursively without checking the redirected URI scheme. An attacker can provide an HTTP URL that redirects to a file:// URI, resulting in arbitrary local file disclosure. To fix this, keep the local file handling separate from the remote fetch logic, and restrict the allowe

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Ruby
greprules fetch cve-2026-53727-ruby-recursive-fetch-file-disclosure --engine opengrep

Description

A function handles both remote requests and local file:// URIs, and follows redirects recursively without checking the redirected URI scheme. An attacker can provide an HTTP URL that redirects to a file:// URI, resulting in arbitrary local file disclosure. To fix this, keep the local file handling separate from the remote fetch logic, and restrict the allowe