CVE-2026-41706: Spring Oauth2 Weak Uri Validation

Validation of URIs that only checks for the absence of a fragment is insufficient. This allows dangerous schemes (e.g., `javascript:`) and exposes the application to SSRF, Open Redirect, or XSS vulnerabilities. Validate the scheme, host, and port to ensure the URI meets strict security boundaries.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Javaβ
greprules fetch cve-2026-41706-spring-oauth2-weak-uri-validation --engine opengrep

Description

Validation of URIs that only checks for the absence of a fragment is insufficient. This allows dangerous schemes (e.g., `javascript:`) and exposes the application to SSRF, Open Redirect, or XSS vulnerabilities. Validate the scheme, host, and port to ensure the URI meets strict security boundaries.