CVE-2026-59281
Last modified
CVE-2026-59281 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. Spring MVC and WebFlux applications that obtain a data-binding Errors instance with HTML escaping enabled and then render field errors using the no-argument Errors.getFieldErrors() or Errors.getFieldError() accessors are vulnerable to arbitrary HTML/JavaScript code injection, potentially resulting in a reflected cross-site scripting (XSS) vulnerability. Spring Framework 7.0.0 - 7.0.8 Spring Framework 6.2.0 - 6.2.19 Spring Framework 6.1.0 - 6.1.28 Spring Framework 6.0.0 - 6.0.30 Spring Framework 5.3.0 - 5.3.49 Spring Framework 5.2.25.RELEASE and earlier. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
Description
Spring MVC and WebFlux applications that obtain a data-binding Errors instance with HTML escaping enabled and then render field errors using the no-argument Errors.getFieldErrors() or Errors.getFieldError() accessors are vulnerable to arbitrary HTML/JavaScript code injection, potentially resulting in a reflected cross-site scripting (XSS) vulnerability. Spring Framework 7.0.0 - 7.0.8 Spring Framework 6.2.0 - 6.2.19 Spring Framework 6.1.0 - 6.1.28 Spring Framework 6.0.0 - 6.0.30 Spring Framework 5.3.0 - 5.3.49 Spring Framework 5.2.25.RELEASE and earlier
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Vmware | Spring Framework | < 5.2.26 |
| Vmware | Spring Framework | >= 5.3.0, < 5.3.50 |
| Vmware | Spring Framework | >= 6.0.0, < 6.0.31 |
| Vmware | Spring Framework | >= 6.1.0, < 6.1.29 |
| Vmware | Spring Framework | >= 6.2.0, < 6.2.20 |
| Vmware | Spring Framework | >= 7.0.0, < 7.0.8.1 |
References
- https://spring.io/security/cve-2026-59281Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-59281?
How severe is CVE-2026-59281?
How do I fix CVE-2026-59281?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-59276Several components in Spring Security compare security-sensi…5.9
- CVE-2026-59277Spring Security's InetAddressMatchers utility provides match…5.3
- CVE-2026-59278JsonKafkaHeaderMapper and DefaultKafkaHeaderMapper include j…6.5
- CVE-2026-59279The MCP Streamable HTTP server transport (WebFlux and WebMvc…7.5
- CVE-2026-5928Calling the ungetwc function on a FILE stream with wide char…7.5
- CVE-2026-59280Applications using Spring Framework's FreeMarker integration…4.3
- CVE-2026-59282Spring Framework applications that use Spring's data binding…7.5
- CVE-2026-59283Applications that evaluate Spring Expression Language (SpEL)…9.1
- CVE-2026-59284There is no allow list for property keys when Spring Cloud C…7.6
- CVE-2026-59285Spring for GraphQL applications are vulnerable to Unsafe Des…8.1
- CVE-2026-59286The GraphiQL page bundled with Spring for GraphQL loads Java…8.1
- CVE-2026-59287Spring for GraphQL is vulnerable to Denial of Service attack…5.9
Are you affected by CVE-2026-59281?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
