{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-97711","id":"CVE-2026-97711","title":"Serialize JavaScript: Cross-site scripting (XSS) via unescaped </script> in serialized function bodies","description":"Serialize JavaScript serializes JavaScript values to a superset of JSON that includes regular expressions and functions. From 7.1.1 until 7.1.2, function values serialized by serialize-javascript are not fully protected against script-closing tags in attacker-influenced function source because SCRIPT_CLOSE_REGEXP can consume a second closing tag inside one match. When the serialized function is em","descriptionLong":"Serialize JavaScript serializes JavaScript values to a superset of JSON that includes regular expressions and functions. From 7.1.1 until 7.1.2, function values serialized by serialize-javascript are not fully protected against script-closing tags in attacker-influenced function source because SCRIPT_CLOSE_REGEXP can consume a second closing tag inside one match. When the serialized function is embedded in a script element, the surviving closing tag terminates the element early and causes the remaining output to be parsed as HTML, enabling cross-site scripting in the page origin. Only function values are affected; ordinary data values and options.isJSON output are unaffected. This issue is fixed in version 7.1.2.","published":"2026-09-29T16:00:33.534Z","updated":"2026-10-28T02:30:53.237371452Z","reserved":"2026-09-24T21:43:37.210Z","status":"PUBLISHED","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":2.3,"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","rating":"low","source":"GitHub_M"},"metrics":[{"version":"4.0","score":2.3,"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","rating":"low","source":"GitHub_M"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"low","source":"GitHub"}],"rating":"low","products":["yahoo serialize-javascript"],"affectedProducts":[{"vendor":"yahoo","product":"serialize-javascript","defaultStatus":null,"versions":[{"version":">= 7.1.1, < 7.1.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"serialize-javascript","purl":"pkg:npm/serialize-javascript","ranges":[">=7.1.1 <7.1.2"],"fixed":["7.1.2"],"advisory":"GHSA-gfhx-hw2g-v5hg"}],"cwes":["CWE-79","CWE-80"],"aliases":["GHSA-gfhx-hw2g-v5hg"],"references":[{"url":"https://github.com/yahoo/serialize-javascript/security/advisories/GHSA-gfhx-hw2g-v5hg","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/yahoo/serialize-javascript/commit/2bdbaaff9cb8a4639135eb24cfcd383d3fefb534","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/yahoo/serialize-javascript/releases/tag/v7.1.2","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97711.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97711","tags":["advisory"]},{"url":"https://github.com/yahoo/serialize-javascript","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00318,"epssPercentile":0.25354,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-97711","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97711","ok":false,"note":"unavailable (rate limited?)"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-97711","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-gfhx-hw2g-v5hg","ok":true,"note":"GHSA-gfhx-hw2g-v5hg"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-97711","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}