{"id":"CVE-2026-41845","aliases":["CVE-2026-41845","GHSA-3chg-m5w7-qfv5"],"related":[],"kind":"vulnerability","state":"published","title":"Spring Framework Cross-site Scripting via JavaScriptUtils","summary":"Due to incorrect escaping, the use of JavaScriptUtils.javaScriptEscape() may lead to JavaScript code injection in the browser, potentially resulting in a cross-site scripting (XSS) vulnerability.\n\nAffected versions:\nSpring Framework 7.0.0 through 7.0.7; 6.2.0 through 6.2.18; 6.1.0 through 6.1.27; 5.3.0 through 5.3.48.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Due to incorrect escaping, the use of JavaScriptUtils.javaScriptEscape() may lead to JavaScript code injection in the browser, potentially resulting in a cross-site scripting (XSS) vulnerability.\n\nAffected versions:\nSpring Framework 7.0.0 through 7.0.7; 6.2.0 through 6.2.18; 6.1.0 through 6.1.27; 5.3.0 through 5.3.48.","source":"cvelist"},{"lang":"es","text":"Debido a un escape incorrecto, el uso de JavaScriptUtils.javaScriptEscape() puede llevar a una inyección de código JavaScript en el navegador, lo que podría resultar en una vulnerabilidad de cross-site scripting (XSS).\n\nVersiones afectadas:\nSpring Framework 7.0.0 a 7.0.7; 6.2.0 a 6.2.18; 6.1.0 a 6.1.27; 5.3.0 a 5.3.48.","source":"nvd"}],"published":"2026-06-09T03:50:48.454Z","modified":"2026-09-10T03:50:55.485Z","severity":{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"custom","introduced":"7.0.0","fixed":"7.0.7.1","status":"affected"},{"type":"custom","introduced":"6.2.0","fixed":"6.2.18.1","status":"affected"},{"type":"custom","introduced":"6.1.0","fixed":"6.1.28","status":"affected"},{"type":"custom","introduced":"5.3.0","fixed":"5.3.49","status":"affected"}],"vendor":"Spring","product":"Spring Framework","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.0.8"}],"ecosystem":"Maven","package":"org.springframework:spring-webmvc","purl":"pkg:maven/org.springframework/spring-webmvc","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.2.0","status":"affected","fixed":"6.2.19"}],"ecosystem":"Maven","package":"org.springframework:spring-webmvc","purl":"pkg:maven/org.springframework/spring-webmvc","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.1.0","status":"affected","lastAffected":"6.1.21"}],"ecosystem":"Maven","package":"org.springframework:spring-webmvc","purl":"pkg:maven/org.springframework/spring-webmvc","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"5.3.39"}],"ecosystem":"Maven","package":"org.springframework:spring-webmvc","purl":"pkg:maven/org.springframework/spring-webmvc","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.3.0","fixed":"5.3.49"},{"status":"affected","introduced":"6.1.0","fixed":"6.1.28"},{"status":"affected","introduced":"6.2.0","fixed":"6.2.18.1"},{"status":"affected","introduced":"7.0.0","fixed":"7.0.7.1"}],"vendor":"vmware","product":"spring_framework","cpe":"cpe:2.3:a:vmware:spring_framework:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://spring.io/security/cve-2026-41845","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41845","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-framework/commit/86d99790dbaa8ce6bb1087ef92844d0abfdab015","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-framework/commit/a1826b725c29fbb175fa7b4fc005aa3d78c32015","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-framework","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-framework/releases/tag/v6.2.19","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-framework/releases/tag/v7.0.8","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"vmware","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-09T13:33:16.137Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41845","url":"https://www.cve.org/CVERecord?id=CVE-2026-41845","licence":"CVE Terms of Use","modified":"2026-06-27T21:01:27.349Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3chg-m5w7-qfv5","url":"https://github.com/advisories/GHSA-3chg-m5w7-qfv5","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:55.485Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41845","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41845","licence":"Public domain","modified":"2026-07-23T08:10:00.137Z"}],"updatedAt":"2026-11-25T22:59:24.065Z","epss":{"score":0.00161,"percentile":0.05521,"date":"2026-12-01T12:00:22.000Z"}}