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

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS: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.

DistributionPackageReleaseVersionStatus
Debiannode-serialize-javascriptsid7.1.4+~5.0.4-1fixed
Debiannode-serialize-javascriptforky7.1.4+~5.0.4-1fixed
Debiannode-serialize-javascripttrixie6.0.2-1vulnerable
Debiannode-serialize-javascriptbookworm6.0.0-2+deb12u1vulnerable
Npmserialize-javascriptNot reported7.1.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-serialize-javascriptsourcesid7.1.2+~5.0.4-1not yet assignedNot reportedNot reported
Debiannode-serialize-javascriptsourceforky7.1.2+~5.0.4-1not yet assignedNot reportedNot reported
Debiannode-serialize-javascriptsourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debiannode-serialize-javascriptsourcebookworm(unfixed)not yet assignedNot reportedNot reported
Npmserialize-javascriptnpmNot reported7.1.2Not reportedGHSA-GFHX-HW2G-V5HGNot reported

Notes

[trixie] node-serialize-javascript: Minor issue [bookworm] node-serialize-javascript: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 6.0.0-2+deb12u1 · all · bookworm

      Affected

      nvd · node-serialize-javascript · debian · bookworm; nvd · node-serialize-javascript · debian · 12

    • 6.0.0-2+deb12u1 · all · bookworm

      Affected

      nvd · node-serialize-javascript · debian · bookworm; nvd · node-serialize-javascript · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 6.0.2-1 · all · trixie

      Affected

      nvd · node-serialize-javascript · debian · 13

    • 6.0.2-1 · all · trixie

      Affected

      nvd · node-serialize-javascript · debian · 13

Observed:

References