Description
serialize-javascript from 7.0.1 before 7.1.3 contains a cross-site scripting vulnerability that allows attackers to break out of HTML script elements by ending serialized function source text with an unescaped </script. Attackers controlling a function's source via a spoofed toString() can combine surrounding output delimiters and later values to inject live markup such as img onerror handlers.
Published: 2026-10-23
Score: 2.3 Low
EPSS: < 1% Very Low
KEV: No
Impact: Cross‑Site Scripting (XSS) that can lead to arbitrary script execution
Action: Upgrade
AI Analysis

Impact

serialize‑javascript 7.0.1 through 7.1.2 contains an XSS flaw that allows an attacker to terminate a serialized function’s source text with an unescaped </script tag. By controlling the function’s toString() output, a malicious actor can break out of an enclosing HTML script element and inject arbitrary markup, such as image tags with onerror handlers, that will execute scripts when rendered in a browser. The impact is the execution of attacker‑supplied code within the victim’s browser context, leading to potential data theft, session hijacking, or defacement.

Affected Systems

The vulnerability affects the Yahoo serialize‑javascript library, specifically any installation of version 7.0.1 up to and excluding 7.1.3.

Risk and Exploitability

With a CVSS score of 2.3, the flaw is considered low severity, and no EPSS data is available. It is not listed in the CISA KEV catalog, indicating no known exploitation activity. The attack vector requires a web application that serializes function objects and includes serialize‑javascript; an attacker who can supply a function with a malicious toString() will achieve the XSS, but the exploitation relies on client‑side execution and does not bypass authentication.

Generated by OpenCVE AI on October 23, 2026 at 16:05 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade serialize‑javascript to 7.1.3 or later
  • Refuse to serialize function objects that can be modified by toString() overrides
  • Validate or escape any user‑supplied data before it reaches serialize‑javascript

Generated by OpenCVE AI on October 23, 2026 at 16:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 24 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 23 Oct 2026 23:45:00 +0000

Type Values Removed Values Added
First Time appeared Yahoo serialize-javascript
Vendors & Products Yahoo serialize-javascript

Fri, 23 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 23 Oct 2026 13:30:00 +0000

Type Values Removed Values Added
Description serialize-javascript from 7.0.1 before 7.1.3 contains a cross-site scripting vulnerability that allows attackers to break out of HTML script elements by ending serialized function source text with an unescaped </script. Attackers controlling a function's source via a spoofed toString() can combine surrounding output delimiters and later values to inject live markup such as img onerror handlers.
Title serialize-javascript 7.0.1 before 7.1.3 XSS via unescaped </script in function body
First Time appeared Yahoo
Yahoo serialize Javascript
Weaknesses CWE-79
CPEs cpe:2.3:a:yahoo:serialize_javascript:*:*:*:*:*:*:*:*
Vendors & Products Yahoo
Yahoo serialize Javascript
References
Metrics cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 2.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}


Subscriptions

Yahoo Serialize-javascript Serialize Javascript
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-23T14:58:11.402Z

Reserved: 2026-10-23T13:16:42.305Z

Link: CVE-2026-115754

cve-icon Vulnrichment

Updated: 2026-10-23T14:48:53.897Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-23T14:17:52.590

Modified: 2026-10-23T19:45:03.547

Link: CVE-2026-115754

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-23T13:20:43Z

Links: CVE-2026-115754 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T23:30:17Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')