{"id":"CVE-2026-115897","published":"2026-10-23T21:37:41Z","modified":"2026-10-26T17:41:50Z","title":"Serialize JavaScript: Cross-site scripting (XSS) via unescaped </script at the end of a serialized function body","vendor":"yahoo","product":"serialize-javascript","tier":"tail","description":{"text":"Serialize JavaScript serializes JavaScript values to a superset of JSON that includes regular expressions and functions. Prior to 7.1.3, the function-source escaping logic does not neutralize a bare closing-script prefix when attacker-influenced function source text ends exactly at that prefix. Because each function body is escaped independently, a delimiter supplied by surrounding serialized output can terminate an HTML script element, and a later serialized value supplies injected markup that becomes a live element in the page. Exploitation requires control of a serialized function's source text, such as through a spoofed toString(). This issue is fixed in version 7.1.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.1,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00307,"percentile":0.2406,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/yahoo/serialize-javascript/security/advisories/GHSA-m5mm-p8h7-m29v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/yahoo/serialize-javascript/pull/235","tags":["x_refsource_MISC"]},{"url":"https://github.com/yahoo/serialize-javascript/commit/2864b3c6260a3bfd52d2db3e70d1a079de108a61","tags":["x_refsource_MISC"]},{"url":"https://github.com/yahoo/serialize-javascript/releases/tag/v7.1.3","tags":["x_refsource_MISC"]}],"priority":{"score":6.3,"factors":[{"name":"EPSS percentile","points":4.81},{"name":"CVSS severity","points":1.47}]},"vendorSlug":"yahoo","affectedVersions":[{"vendor":"yahoo","product":"serialize-javascript","versions":["< 7.1.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-26T15:39:04.934773Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"serialize-javascript","vulnerableRanges":["<7.1.3"],"patched":["7.1.3"],"from":["GHSA-m5mm-p8h7-m29v"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-109190","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-yahoo-serialize-javascript-cve-2026-115754","parents":[{"from":"CVE-2026-115754","to":"CVE-2026-115897","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-m5mm-p8h7-m29v","via":"reference","url":"https://github.com/yahoo/serialize-javascript/security/advisories/GHSA-m5mm-p8h7-m29v"}]}],"packageHistory":[{"cve":"CVE-2024-11831","published":"2025-02-10","fixed":"6.0.2","kev":false},{"cve":"CVE-2026-34043","published":"2026-03-31","fixed":"7.0.5","kev":false},{"cve":"CVE-2026-97711","published":"2026-09-29","fixed":"7.1.2","kev":false,"link":{"from":"CVE-2026-97711","to":"CVE-2026-115897","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:serialize-javascript","fromFixed":"7.1.2","toFixed":"7.1.3","daysApart":24},{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/yahoo/serialize-javascript/commit/2864b3c6260a3bfd52d2db3e70d1a079de108a61","https://github.com/yahoo/serialize-javascript/commit/2bdbaaff9cb8a4639135eb24cfcd383d3fefb534"],"basis":"shared file"},{"kind":"similar","provenance":"machine","score":0.21,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-115897","published":"2026-10-23","fixed":"7.1.3","kev":false}],"package":"npm:serialize-javascript"}}