Bug 2543276 (CVE-2026-97711) - CVE-2026-97711 serialize-javascript: serialize-javascript: Cross-Site Scripting via unescaped script-closing tags in serialized functions
Summary: CVE-2026-97711 serialize-javascript: serialize-javascript: Cross-Site Scripti...
Keywords:
Status: NEW
Alias: CVE-2026-97711
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-29 16:16 UTC by OSIDB Bzimport
Modified: 2026-10-05 09:19 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-09-29 16:16:27 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.