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.

Severity (CVSS 3.1)4.7Medium
Exploit odds (30 days)0.2%top 85.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12node-serialize-javascriptno fix listedDEBIAN-CVE-2026-115754
Debian:13node-serialize-javascriptno fix listedDEBIAN-CVE-2026-115754
Debian:14node-serialize-javascript7.1.4+~5.0.4-1DEBIAN-CVE-2026-115754
Ubuntu:22.04:LTSnode-serialize-javascriptno fix listedUBUNTU-CVE-2026-115754
Ubuntu:24.04:LTSnode-serialize-javascriptno fix listedUBUNTU-CVE-2026-115754
Ubuntu:26.04:LTSnode-serialize-javascriptno fix listedUBUNTU-CVE-2026-115754
Ubuntu:26.10node-serialize-javascriptno fix listedUBUNTU-CVE-2026-115754
npmserialize-javascript7.1.3GHSA-m5mm-p8h7-m29v

Affected products (as reported)

VendorProductVersions
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