{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-115897","id":"CVE-2026-115897","title":"Serialize JavaScript XSS in function-source escaping","description":"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 outp","descriptionLong":"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.","published":"2026-10-23T21:37:41.097Z","updated":"2026-11-06T17:27:18.400576963Z","reserved":"2026-10-23T19:37:27.177Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":2.1,"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","rating":"low","source":"GitHub_M"},"metrics":[{"version":"4.0","score":2.1,"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","rating":"low","source":"GitHub_M"},{"version":"4.0","score":2.1,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"low","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"low","source":"GitHub"}],"rating":"low","products":["yahoo serialize-javascript"],"affectedProducts":[{"vendor":"yahoo","product":"serialize-javascript","defaultStatus":null,"versions":[{"version":"< 7.1.3","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"serialize-javascript","purl":"pkg:npm/serialize-javascript","ranges":["<7.1.3"],"fixed":["7.1.3"],"advisory":"GHSA-m5mm-p8h7-m29v"}],"cwes":["CWE-79"],"aliases":["CVE-2026-115754","GHSA-m5mm-p8h7-m29v"],"references":[{"url":"https://github.com/yahoo/serialize-javascript/security/advisories/GHSA-m5mm-p8h7-m29v","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/yahoo/serialize-javascript/pull/235","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/yahoo/serialize-javascript/commit/2864b3c6260a3bfd52d2db3e70d1a079de108a61","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/yahoo/serialize-javascript/releases/tag/v7.1.3","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/115xxx/CVE-2026-115897.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115897","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.00307,"epssPercentile":0.23929,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-115897","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-115897","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-115897","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-m5mm-p8h7-m29v","ok":true,"note":"GHSA-m5mm-p8h7-m29v"},{"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-115897","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}