Skip to content
OpenAdvisories
Medium · 4.7 CVE-2026-115754 CVE-2026-115897EUVD-2026-108967GHSA-cvqw-cqhx-qmxc

serialize-javascript 7.0.1 before 7.1.3 XSS via unescaped </script in function body

Published Oct 23, 2026 · Updated Oct 23, 2026 · 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.

Affected products

VendorProductAffectedFixed
yahoo serialize-javascript 7.0.1 – < 7.1.3 7.1.3

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-serialize-javascript 7.1.4+~5.0.4-1 —
Debian 13 node-serialize-javascript No fix yet —
Debian 12 node-serialize-javascript No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-serialize-javascript No fix yet —
Ubuntu 26.04 LTS node-serialize-javascript No fix yet —
Ubuntu 24.04 LTS node-serialize-javascript No fix yet —
Ubuntu 22.04 LTS node-serialize-javascript No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 grafana12.4 12.4.13-0.6.hum1 RHSA-2026:93601
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed agama-web-ui 25+475.275dd4727-56.1 openSUSE-SU-2026:12424-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-tensorboard No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm serialize-javascript < 7.1.3 7.1.3 GHSA-m5mm-p8h7-m29v

Advisories 2

References