# CVE-2026-115897: Serialize JavaScript: Cross-site scripting (XSS) via unescaped </script at the end of a serialized function body

- Severity: Low 2.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-10-23T21:37:41.097Z
- Modified: 2026-10-26T18:39:42.503Z
- Also known as: GHSA-m5mm-p8h7-m29v
- Related: CVE-2026-115754
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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 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.

(As written by CVE List.)

## Affected

- yahoo serialize-javascript: < 7.1.3
- serialize-javascript (npm): before 7.1.3

## Every score

- GitHub_M: CVSS:4.0 2.1 Low `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`
- GitHub: CVSS:4.0 Low `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`

## References

- <https://github.com/yahoo/serialize-javascript/security/advisories/GHSA-m5mm-p8h7-m29v> (web)
- <https://github.com/yahoo/serialize-javascript/pull/235> (web)
- <https://github.com/yahoo/serialize-javascript/commit/2864b3c6260a3bfd52d2db3e70d1a079de108a61> (web)
- <https://github.com/yahoo/serialize-javascript/releases/tag/v7.1.3> (web)
- <https://github.com/yahoo/serialize-javascript> (package)

## Sources

- CVE List: [CVE-2026-115897](https://www.cve.org/CVERecord?id=CVE-2026-115897), CVE Terms of Use, modified 2026-10-26
- GitHub Advisory Database: [GHSA-m5mm-p8h7-m29v](https://github.com/advisories/GHSA-m5mm-p8h7-m29v), CC-BY-4.0, modified 2026-10-24
- NVD: [CVE-2026-115897](https://nvd.nist.gov/vuln/detail/CVE-2026-115897), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-115897 · Whole record: https://cve.day/CVE-2026-115897.json · Rebuilt by cve.day 2026-11-25T22:59:47.018Z
