# CVE-2026-115754: serialize-javascript 7.0.1 before 7.1.3 XSS via unescaped </script in function body

- Severity: Low 2.3 (CVSS:4.0, scored by VulnCheck) `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`
- 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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2026-10-23T13:20:43.932Z
- Modified: 2026-10-24T02:55:55.507Z
- Also known as: GHSA-m5mm-p8h7-m29v
- Related: CVE-2026-115897
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- yahoo serialize-javascript: from 7.0.1 before 7.1.3
- serialize-javascript (npm): before 7.1.3

## Every score

- VulnCheck: CVSS:4.0 2.3 Low `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`
- VulnCheck: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A: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> (vendor-advisory, web)
- <https://github.com/yahoo/serialize-javascript/pull/235> (issue-tracking, patch, web)
- <https://github.com/yahoo/serialize-javascript/commit/2864b3c6260a3bfd52d2db3e70d1a079de108a61> (patch, web)
- <https://github.com/yahoo/serialize-javascript/releases/tag/v7.1.3> (release-notes, web)
- <https://www.vulncheck.com/advisories/serialize-javascript-7.0.1-before-7.1.3-xss-via-unescaped-script-in-function-body> (third-party-advisory)
- <https://github.com/yahoo/serialize-javascript> (package)

## Sources

- CVE List: [CVE-2026-115754](https://www.cve.org/CVERecord?id=CVE-2026-115754), CVE Terms of Use, modified 2026-10-23
- 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-115754](https://nvd.nist.gov/vuln/detail/CVE-2026-115754), Public domain, modified 2026-10-23

---

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