CVE-2026-97711 Serialize JavaScript: Cross-site scripting (XSS) via unescaped </script> in serialized function bodies
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
9 packages: 2 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-serialize-javascript(Debian 12) | = 6.0.0-2; = 6.0.0-2+deb12u1; = 6.0.1-1; = 6.0.2-1 +5 more | No fix listed | No fix yet |
| debian/node-serialize-javascript(Debian 13) | = 6.0.2-1; = 7.0.4+~5.0.4-1; = 7.0.5+~5.0.4-1; = 7.0.7+~5.0.4-1 +2 more | No fix listed | No fix yet |
| ubuntu/node-serialize-javascript(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-serialize-javascript(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-serialize-javascript(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-serialize-javascript(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/node-serialize-javascript(Debian 14) | < 7.1.2+~5.0.4-1; = 6.0.2-1; = 7.0.4+~5.0.4-1; = 7.0.5+~5.0.4-1 +1 more | 7.1.2+~5.0.4-1 | Fixed |
| npm serialize-javascript(npm) | >= 7.1.1, < 7.1.2 | 7.1.2 | Fixed |
| yahoo serialize-javascript | = >= 7.1.1, < 7.1.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| yahoo serialize-javascript | = >= 7.1.1, < 7.1.2 | No fix listed |
| npm serialize-javascript(npm) | >= 7.1.1, < 7.1.2 | 7.1.2 |
| debian/node-serialize-javascript(Debian:12) | All versions | No fix listed |
| debian/node-serialize-javascript(Debian:12) | = 6.0.0-2 | No fix listed |
| debian/node-serialize-javascript(Debian:12) | = 6.0.0-2+deb12u1 | No fix listed |
| debian/node-serialize-javascript(Debian:12) | = 6.0.1-1 | No fix listed |
| debian/node-serialize-javascript(Debian:12) | = 6.0.2-1 | No fix listed |
| debian/node-serialize-javascript(Debian:12) | = 7.0.4+~5.0.4-1 | No fix listed |
| debian/node-serialize-javascript(Debian:12) | = 7.0.5+~5.0.4-1 | No fix listed |
| debian/node-serialize-javascript(Debian:12) | = 7.0.7+~5.0.4-1 | No fix listed |
| debian/node-serialize-javascript(Debian:12) | = 7.1.2+~5.0.4-1 | No fix listed |
| debian/node-serialize-javascript(Debian:13) | All versions | No fix listed |
| debian/node-serialize-javascript(Debian:13) | = 6.0.2-1 | No fix listed |
| debian/node-serialize-javascript(Debian:13) | = 7.0.4+~5.0.4-1 | No fix listed |
| debian/node-serialize-javascript(Debian:13) | = 7.0.5+~5.0.4-1 | No fix listed |
| debian/node-serialize-javascript(Debian:13) | = 7.0.7+~5.0.4-1 | No fix listed |
| debian/node-serialize-javascript(Debian:13) | = 7.1.2+~5.0.4-1 | No fix listed |
| debian/node-serialize-javascript(Debian:14) | < 7.1.2+~5.0.4-1 | 7.1.2+~5.0.4-1 |
| debian/node-serialize-javascript(Debian:14) | = 6.0.2-1 | No fix listed |
| debian/node-serialize-javascript(Debian:14) | = 7.0.4+~5.0.4-1 | No fix listed |
| debian/node-serialize-javascript(Debian:14) | = 7.0.5+~5.0.4-1 | No fix listed |
| debian/node-serialize-javascript(Debian:14) | = 7.0.7+~5.0.4-1 | No fix listed |
| ubuntu/node-serialize-javascript(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/node-serialize-javascript(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-serialize-javascript(Ubuntu:26.04) | All versions | No fix listed |
Show 1 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/node-serialize-javascript(Ubuntu:26.10) | All versions | No fix listed |
References
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2543276 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/yahoo/serialize-javascript/commit/2bdbaaff9cb8a4639135eb24cfcd383d3fefb534 patch
- https://github.com/yahoo/serialize-javascript/releases/tag/v7.1.2
- https://github.com/yahoo/serialize-javascript/security/advisories/GHSA-gfhx-hw2g-v5hg vendor-advisory
- github.com
- Debian Security Tracker CVE-2026-97711 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- github.com product
- ENISA EUVD EUVD-2026-89027 third-party-advisory