# serialize-javascript (npm) vulnerabilities

7 known vulnerabilities (3 medium, 3 low), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: not known (cve.now hasn't read this package's releases)
- Newest unaffected release: not known without release data
- Registry: https://www.npmjs.com/package/serialize-javascript

## Advisories (7)

### [CVE-2026-115897](https://cve.now/CVE-2026-115897): Serialize JavaScript: Cross-site scripting (XSS) via unescaped \</script at the end of a serialized function body

- Severity: Low 2.1
- Published: Oct 23, 2026
- Affected: fixed in 7.1.3.

### [CVE-2026-115754](https://cve.now/CVE-2026-115754): serialize-javascript 7.0.1 before 7.1.3 XSS via unescaped \</script in function body

- Severity: Low 2.3
- Published: Oct 23, 2026
- Affected: fixed in 7.1.3.

### [CVE-2026-97711](https://cve.now/CVE-2026-97711): Serialize JavaScript: Cross-site scripting (XSS) via unescaped \</script\> in serialized function bodies

- Severity: Low 2.3
- Published: Sep 29, 2026
- Affected: from 7.1.1, fixed in 7.1.2.

### [CVE-2026-34043](https://cve.now/CVE-2026-34043): Serialize JavaScript has CPU Exhaustion Denial of Service via crafted array-like objects

- Severity: Medium 5.9
- Published: Mar 31, 2026
- Affected: from 5.0.0, fixed in 7.0.5.

### [CVE-2024-11831](https://cve.now/CVE-2024-11831): Npm-serialize-javascript: cross-site scripting (xss) in serialize-javascript

- Severity: Medium 5.4
- Published: Feb 10, 2025
- Affected: from 6.0.0, fixed in 6.0.2.

### [CVE-2020-7660](https://cve.now/CVE-2020-7660): serialize-javascript prior to 3.1.0 allows remote attackers to inject arbitrary code via the function "deleteFunctions" within "index.js".

- Severity: Unrated
- Published: Jun 1, 2020
- Affected: fixed in 3.1.0.

### [CVE-2019-16769](https://cve.now/CVE-2019-16769): Affected versions of serialize-javascript are vulnerable to Cross-site Scripting (XSS)

- Severity: Medium 4.2
- Published: Dec 5, 2019
- Affected: fixed in 2.1.1.

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/npm/serialize-javascript
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
