
CVE catalog
CVE-2026-97711
Serialize JavaScript serializes JavaScript values to a superset of JSON that includes regular expressions and functions. From 7.1.1 until 7.1.2, function values serialized by serialize-javascript are
- Severity
- Medium · CVSS 6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.32% · Oct 25, 2026
Serialize JavaScript serializes JavaScript values to a superset of JSON that includes regular expressions and functions. From 7.1.1 until 7.1.2, function values serialized by serialize-javascript are not fully protected against script-closing tags in attacker-influenced function source because SCRIPT_CLOSE_REGEXP can consume a second closing tag inside one match. When the serialized function is embedded in a script element, the surviving closing tag terminates the element early and causes the remaining output to be parsed as HTML, enabling cross-site scripting in the page origin. Only function values are affected; ordinary data values and options.isJSON output are unaffected. This issue is fixed in version 7.1.2.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-serialize-javascript | sid | 7.1.4+~5.0.4-1 | fixed |
| Debian | node-serialize-javascript | forky | 7.1.4+~5.0.4-1 | fixed |
| Debian | node-serialize-javascript | trixie | 6.0.2-1 | vulnerable |
| Debian | node-serialize-javascript | bookworm | 6.0.0-2+deb12u1 | vulnerable |
| Npm | serialize-javascript | Not reported | 7.1.2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-serialize-javascript | source | sid | 7.1.2+~5.0.4-1 | not yet assigned | Not reported | Not reported |
| Debian | node-serialize-javascript | source | forky | 7.1.2+~5.0.4-1 | not yet assigned | Not reported | Not reported |
| Debian | node-serialize-javascript | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | node-serialize-javascript | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Npm | serialize-javascript | npm | Not reported | 7.1.2 | Not reported | GHSA-GFHX-HW2G-V5HG | Not reported |
Notes
[trixie] node-serialize-javascript: Minor issue [bookworm] node-serialize-javascript: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [node-serialize-javascript]Affected
Details (2)
6.0.0-2+deb12u1· all · bookwormAffected
nvd · node-serialize-javascript · debian · bookworm; nvd · node-serialize-javascript · debian · 12
6.0.0-2+deb12u1· all · bookwormAffected
nvd · node-serialize-javascript · debian · bookworm; nvd · node-serialize-javascript · debian · 12
[Debian 13 (Trixie)]
- [node-serialize-javascript]Affected
Details (2)
6.0.2-1· all · trixieAffected
nvd · node-serialize-javascript · debian · 13
6.0.2-1· all · trixieAffected
nvd · node-serialize-javascript · debian · 13
Observed:
References
- [https://github.com/advisories/GHSA-gfhx-hw2g-v5hg]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-97711]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-97711]
- [https://security-tracker.debian.org/tracker/CVE-2026-97711]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-97711.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]