{"id":"CVE-2026-59281","aliases":["GHSA-549f-4rpc-3rw9"],"url":"https://o3.security/vulnerability/CVE-2026-59281","summary":"Spring Framework Cross-site Scripting via EscapedErrors","details":"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.\n* Spring Framework 7.0.0 - 7.0.8\n* Spring Framework 6.2.0 - 6.2.19\n* Spring Framework 6.1.0 - 6.1.28\n* Spring Framework 6.0.0 - 6.0.30\n* Spring Framework 5.3.0 - 5.3.49\n* Spring Framework 5.2.25.RELEASE and earlier\n\n### Fixed Versions\n\nThe following versions contain fixes for CVE-2026-59281:\n\n| Spring Framework Version | Fixed Version | Availability |\n|---|---|---|\n| 7.0.0 – 7.0.8 | 7.0.9 | Open Source |\n| 6.2.0 – 6.2.19 | 6.2.20 | Enterprise Support Only |\n| 6.1.0 – 6.1.28 | 6.1.29 | Enterprise Support Only |\n| 6.0.0 – 6.0.30 | 6.0.31 | Enterprise Support Only |\n| 5.3.0 – 5.3.49 | 5.3.50 | Enterprise Support Only |\n| 5.2.25.RELEASE and earlier | 5.2.26 | Enterprise Support Only","published":"2026-08-27T17:57:37.157Z","modified":"2026-12-03T21:56:12.209006738Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":{"score":0.00185,"percentile":0.08475,"asOf":"2026-12-02"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.springframework:spring-web","fixedVersion":"7.0.9"},{"ecosystem":"Maven","name":"org.springframework:spring-web","fixedVersion":null},{"ecosystem":"Maven","name":"org.springframework:spring-web","fixedVersion":null},{"ecosystem":"Maven","name":"org.springframework:spring-web","fixedVersion":null},{"ecosystem":"Maven","name":"org.springframework:spring-web","fixedVersion":null},{"ecosystem":"Maven","name":"org.springframework:spring-web","fixedVersion":null}],"fix":{"url":"https://github.com/spring-projects/spring-framework/commit/8cb1151375d2e22e14f3406e05f99fc333a618f7","label":"spring-projects/spring-framework@8cb1151"},"references":[{"type":"WEB","url":"https://spring.io/security/cve-2026-59281"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59281.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59281"},{"type":"WEB","url":"https://github.com/spring-projects/spring-framework/issues/37055"},{"type":"WEB","url":"https://github.com/spring-projects/spring-framework/commit/8cb1151375d2e22e14f3406e05f99fc333a618f7"},{"type":"WEB","url":"https://github.com/spring-projects/spring-framework/commit/ac0f8be0d821d0a51f02b4ef504755ff35ccd464"},{"type":"PACKAGE","url":"https://github.com/spring-projects/spring-framework"},{"type":"WEB","url":"https://github.com/spring-projects/spring-framework/releases/tag/v7.0.9"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-12-03T21:56:12.209006738Z"}}