{"id":"CVE-2026-115754","revision":"f22be59cbbaf47d3b989409ac645a194","records":[{"revision":"f22be59cbbaf47d3b989409ac645a194","observedAt":"2026-10-23T16:01:20.601+00:00","statement":{"source":"cve-program","id":"CVE-2026-115754","aliases":[],"title":"serialize-javascript 7.0.1 before 7.1.3 XSS via unescaped </script in function body","description":"serialize-javascript from 7.0.1 before 7.1.3 contains a cross-site scripting vulnerability that allows attackers to break out of HTML script elements by ending serialized function source text with an unescaped </script. Attackers controlling a function's source via a spoofed toString() can combine surrounding output delimiters and later values to inject live markup such as img onerror handlers.","state":0,"publishedAt":"2026-10-23T13:20:43.932+00:00","modifiedAt":"2026-10-23T14:58:11.402+00:00","affected":[{"ecosystem":"Vendor product","name":"serialize-javascript","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"yahoo\",\n                    \"product\": \"serialize-javascript\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"versions\": [\n                        {\n                            \"version\": \"7.0.1\",\n                            \"lessThan\": \"7.1.3\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"packageURL\": \"pkg:npm/serialize-javascript\",\n                    \"repo\": \"https://github.com/yahoo/serialize-javascript\"\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":2.3,"severity":"LOW"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7,"severity":"MEDIUM"}],"references":["https://github.com/yahoo/serialize-javascript/security/advisories/GHSA-m5mm-p8h7-m29v","https://github.com/yahoo/serialize-javascript/pull/235","https://github.com/yahoo/serialize-javascript/commit/2864b3c6260a3bfd52d2db3e70d1a079de108a61","https://github.com/yahoo/serialize-javascript/releases/tag/v7.1.3","https://www.vulncheck.com/advisories/serialize-javascript-7.0.1-before-7.1.3-xss-via-unescaped-script-in-function-body"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-115754","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-115754","identifiers":["CVE-2026-115754"]},"retained":false,"historicalAffected":[]}],"coverage":[]}