Vulnerability · Published Oct 23, 2026 · Assigned by VulnCheck
CVE-2026-115754serialize-javascript 7.0.1 before 7.1.3 XSS via unescaped </script in function body
Medium 4.7
In plain English
A medium-severity cross-site scripting in serialize-javascript from yahoo. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-serialize-javascript | no fix listed | DEBIAN-CVE-2026-115754 |
| Debian:13 | node-serialize-javascript | no fix listed | DEBIAN-CVE-2026-115754 |
| Debian:14 | node-serialize-javascript | 7.1.4+~5.0.4-1 | DEBIAN-CVE-2026-115754 |
| Ubuntu:22.04:LTS | node-serialize-javascript | no fix listed | UBUNTU-CVE-2026-115754 |
| Ubuntu:24.04:LTS | node-serialize-javascript | no fix listed | UBUNTU-CVE-2026-115754 |
| Ubuntu:26.04:LTS | node-serialize-javascript | no fix listed | UBUNTU-CVE-2026-115754 |
| Ubuntu:26.10 | node-serialize-javascript | no fix listed | UBUNTU-CVE-2026-115754 |
| npm | serialize-javascript | 7.1.3 | GHSA-m5mm-p8h7-m29v |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| yahoo | serialize-javascript | 7.0.1 – before 7.1.3 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- GitHub Security Advisory (GHSA-m5mm-p8h7-m29v) vendor-advisory
- https://github.com/yahoo/serialize-javascript/pull/235 patch, issue-tracking
- https://github.com/yahoo/serialize-javascript/commit/2864b3c6260a3bfd52d2db3e70d1a079de108a61 patch
- serialize-javascript v7.1.3 Release Notes release-notes
- VulnCheck Advisory: serialize-javascript 7.0.1 before 7.1.3 XSS via unescaped </script in function body third-party-advisory