What’s Vulnerable › Vulnerabilities
CVE-2026-115754: serialize-javascript 7.0.1 before 7.1.3 XSS via unescaped </script in function body
- Severity: medium (CVSS 4.7 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-23 · updated 2026-10-23
- Weakness: CWE-79
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.
Affected products
- Npm Serialize-Javascript: before 7.1.3 — fixed in 7.1.3
- yahoo serialize-javascript: from 7.0.1 before 7.1.3 — fixed in 7.1.3
How to fix
Upgrade to a fixed version: Npm Serialize-Javascript 7.1.3; yahoo serialize-javascript 7.1.3. Check the vendor advisory for mitigations.
References
- https://github.com/yahoo/serialize-javascript/commit/2864b3c6260a3bfd52d2db3e70d1a079de108a61
- https://github.com/yahoo/serialize-javascript/pull/235
- https://github.com/yahoo/serialize-javascript/releases/tag/v7.1.3
- https://github.com/yahoo/serialize-javascript/security/advisories/GHSA-m5mm-p8h7-m29v
- https://www.vulncheck.com/advisories/serialize-javascript-7.0.1-before-7.1.3-xss-via-unescaped-script-in-function-body
Get alerted when CVE-2026-115754 or the next vulnerability affects your stack