CVE-2026-3789: Ssrf Resttemplate Unvalidated Dto Url

Detected a potential Server-Side Request Forgery (SSRF) vulnerability. The application extracts a URL-like string from a user input object (DTO) and passes it directly to `RestTemplate` without scheme or host validation. An attacker can supply a malicious URL to scan internal networks, access restricted cloud metadata, or interact with backend internal servi

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Java
greprules fetch cve-2026-3789-ssrf-resttemplate-unvalidated-dto-url --engine opengrep

Description

Detected a potential Server-Side Request Forgery (SSRF) vulnerability. The application extracts a URL-like string from a user input object (DTO) and passes it directly to `RestTemplate` without scheme or host validation. An attacker can supply a malicious URL to scan internal networks, access restricted cloud metadata, or interact with backend internal servi