in serialized function bodies","url":"https://vulntracker.io/cves/CVE-2026-97711","datePublished":"2026-09-29","dateModified":"2026-09-30","description":"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 SCRIP","mainEntity":{"@type":"Thing","name":"CVE-2026-97711","identifier":"CVE-2026-97711","description":"Serialize JavaScript: Cross-site scripting (XSS) via unescaped in serialized function bodies"},"isPartOf":{"@type":"WebSite","name":"VulnTracker","url":"https://vulntracker.io"}}

CVE-2026-97711

Serialize JavaScript: Cross-site scripting (XSS) via unescaped </script> in serialized function bodies

LOW
2.3
CVSS Score
Published: September 29, 2026 at 04:00 PM UTC
Updated: September 30, 2026 at 07:38 PM UTC
1 product affected across 1 vendorSerialize JavaScript

Using serialize-javascript by yahoo?

Get instant alerts when new vulnerabilities affect serialize-javascript - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
LOW2.3
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 7.1.2
Affected range stops below 7.1.2, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

2.3LOWGitHub_M
Vector?

Quick Info

StatusAWAITING ANALYSIS
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card