UrlFileNameViewController in Spring Framework versions 5.2 through 7.0 contains an open redirect vulnerability that stems from a deliberate design decision to treat any path segment as a view name without requiring a secure prefix configuration. This is not an implementation bug — the framework explicitly documented that developers must configure a prefix to constrain view resolution. The vulnerability manifests when an attacker supplies a malicious path that the controller passes directly to view resolution, causing a redirect to an attacker-controlled domain.
The attack surface is worse than the CVSS 6.1 suggests. This controller is most commonly deployed in exactly the contexts where open redirect causes maximum harm: public-facing applications performing file serving, document viewing, or static content delivery. An attacker can redirect users from a trusted domain to a credential-harvesting clone while the URL bar still displays the legitimate host — bypassing the 'check the URL' advice users rely on. This transforms an informational-severity vulnerability into a credential-compromise vector.
What matters practically: if you're using UrlFileNameViewController, audit whether you've configured a view prefix that constrains resolution to expected paths. If you haven't, treat any untrusted user input in the URL path as exploitable. The fix Spring shipped matters — if it was actual path validation with a breaking change, the vulnerability is closed. If it was documentation updates advising prefix configuration, the risk remains for any deployment that doesn't actively adopt the guidance. Either way, the underlying architectural pattern of passing path data directly into view resolution without validation should be scrutinized across your codebase.