npmWorst: High7 advisories

serialize-javascript: known vulnerabilities

serialize-javascript has 7 reviewed security advisories in the GitHub Advisory Database — 2 high, 3 moderate, 2 low. The most recent was published 2026-10-23. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the serialize-javascript versions running across your servers, containers and images, and ranks what to patch first.

How to fix serialize-javascript

Upgrade serialize-javascript to a release at or above the fixed version shown for each advisory below. For npm:

npm install serialize-javascript@7.1.3 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (7)

Serialize JavaScript: Cross-site scripting (XSS) via unescaped </script at the end of a serialized function body Low CWE-79 — Affected: before 7.1.3. Fixed in 7.1.3. Published 2026-10-23. GHSA-m5mm-p8h7-m29v · CVE-2026-115754
Serialize JavaScript: Cross-site scripting (XSS) via unescaped </script> in serialized function bodies Low CWE-79 CWE-80 — Affected: from 7.1.1 up to 7.1.2. Fixed in 7.1.2. Published 2026-09-29. GHSA-gfhx-hw2g-v5hg · CVE-2026-97711
Serialize JavaScript has CPU Exhaustion Denial of Service via crafted array-like objects Moderate 5.9 CWE-400 CWE-834 — Affected: from 5.0.0 up to 7.0.5. Fixed in 7.0.5. Published 2026-03-31. GHSA-qj8w-gfj5-8c6v · CVE-2026-34043
Serialize JavaScript is Vulnerable to RCE via RegExp.flags and Date.prototype.toISOString() High 8.1 CWE-96 — Affected: before 7.0.3. Fixed in 7.0.3. Published 2026-02-28. GHSA-5c6j-r48x-rmvq
Cross-site Scripting (XSS) in serialize-javascript Moderate 5.4 CWE-79 — Affected: from 6.0.0 up to 6.0.2. Fixed in 6.0.2. Published 2025-02-10. GHSA-76p7-773f-r4q5 · CVE-2024-11831
Insecure serialization leading to RCE in serialize-javascript High 8.1 CWE-502 — Affected: before 3.1.0. Fixed in 3.1.0. Published 2020-08-11. GHSA-hxcc-f52p-wc94 · CVE-2020-7660
Cross-Site Scripting in serialize-javascript Moderate 4.2 CWE-79 — Affected: before 2.1.1. Fixed in 2.1.1. Published 2019-12-05. GHSA-h9rv-jmmf-4pgx · CVE-2019-16769

Find serialize-javascript across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.