CVE-2026-4979: Wp Unvalidated Image Url To Path

Missing origin validation before converting a user-supplied image URL to a local file path. By using `str_replace` to map upload URLs to paths without verifying the URL prefix, an attacker can supply an external URL that silently ignores the replacement. This external URL could be passed to internal file or image processing functions, leading to Blind Server

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0PHP
greprules fetch cve-2026-4979-wp-unvalidated-image-url-to-path --engine opengrep

Description

Missing origin validation before converting a user-supplied image URL to a local file path. By using `str_replace` to map upload URLs to paths without verifying the URL prefix, an attacker can supply an external URL that silently ignores the replacement. This external URL could be passed to internal file or image processing functions, leading to Blind Server