When you obtain an Errors object in Spring MVC or WebFlux with HTML escaping explicitly enabled during data binding, the field error objects carry escaped data internally. This is the trap: the no-argument getFieldErrors() and getFieldError() accessors — the natural, convenient methods you'd reach for when rendering validation messages in a view — strip the escaping context and return unescaped messages. You enabled escaping at binding time, your template calls the documented accessors, and the output is unescaped. Nothing in the API signals danger.
The CVSS score of 6.1 reflects the conditional nature: exploitation requires the specific API pattern, reflected input (the malicious payload returns via validation errors), and user interaction to trigger the error display. But the EPSS score of 0.00173 is misleading. Static analyzers and DAST tools look for unescaped request parameters or known injection sinks — they don't detect the semantic discontinuity between escape-enabled binding and escape-disabled rendering in the same data structure. The vulnerable pattern is invisible to tooling.
The real exposure question is epidemiological. The no-argument accessors are more ergonomic than the field-specific variants — they're what tutorials, Stack Overflow answers, and Spring's own documentation implicitly guide developers toward. If Spring's examples steer users toward the vulnerable pattern while patching only the code, the trap persists for the next generation. Check your codebase for calls to getFieldErrors() or getFieldError() with no arguments, particularly in Thymeleaf or JSP templates rendering BindingResult errors. Either switch to field-specific accessors like getFieldError("username").getDefaultMessage() or apply manual escaping (HtmlUtils.htmlEscape) to the message content before rendering. The fix isn't complete until your templates use the safe accessor pattern — the CVE patch addresses the framework, but your code may still be calling the wrong methods.