CVE-2026-97711: Node serialize javascript · Serialize JavaScript serializes JavaScript values to a superset of JSON
Affects node-serialize-javascriptSource GCVE Database
Not known to be exploited · CVSS 2.3 Low · fixed in 7.1.2 : update node-serialize-javascript when convenient.
Data as of 24 Nov 2026, 22:12 UTC
- Patch
- Available – fixed in 7.1.2
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 29 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10node-serialize-javascriptpkg:deb/ubuntu/node-serialize-javascript?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSnode-serialize-javascriptpkg:deb/ubuntu/node-serialize-javascript?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSnode-serialize-javascriptpkg:deb/ubuntu/node-serialize-javascript?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSnode-serialize-javascriptpkg:deb/ubuntu/node-serialize-javascript?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-97711 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-97711 (opens in a new tab)
- github.com/yahoo/serialize-javascript/security/advisories/GHSA-gfhx-hw2g-v5hg (opens in a new tab)
- github.com/yahoo/serialize-javascript/commit/2bdbaaff9cb8a4639135eb24cfcd383d3fefb534 (opens in a new tab)
- github.com/yahoo/serialize-javascript/releases/tag/v7.1.2 (opens in a new tab)