Skip to main content

CVE-2026-115897: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in yahoo serialize-javascript

0
Low
VulnerabilityCVE-2026-115897cvecve-2026-115897cwe-79
Published: 10/23/2026 (10/23/2026, 21:37:41 UTC)
Source: CVE Database V5
Vendor/Project: yahoo
Product: serialize-javascript

Description

CVE-2026-115897 is a cross-site scripting (XSS) vulnerability in the yahoo serialize-javascript library prior to version 7.1.3. The issue arises because the function-source escaping logic fails to neutralize a bare closing-script prefix when attacker-controlled function source text ends exactly at that prefix. This can allow an attacker to inject live HTML elements into a page if they control the serialized function's source text, such as via a spoofed toString() method. The vulnerability has a low CVSS score of 2.1 and requires high attack complexity and partial user interaction. It is fixed in version 7.1.3.

CVSS v4.0

Score 2.1low

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Affected software

yahoo

serialize-javascript

Affected versions
<7.1.3
serialize-javascript
pkg:npm/serialize-javascript
Affected versions
<7.1.3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/23/2026, 22:05:14 UTC

Technical Analysis

The serialize-javascript library serializes JavaScript values to a JSON superset including functions and regexes. Before version 7.1.3, the escaping logic for function source code does not properly neutralize a closing </script> tag prefix if the attacker-controlled function source ends exactly at that prefix. Because each function body is escaped independently, a malicious delimiter from surrounding serialized output can prematurely close an HTML script element, allowing subsequent serialized values to inject live markup into the page. Exploitation requires control over the serialized function's source text, for example by spoofing the toString() method of a function. This vulnerability is fixed in version 7.1.3.

Potential Impact

An attacker who can control the source text of a serialized function may inject malicious HTML or script code into web pages using serialize-javascript versions prior to 7.1.3. This can lead to cross-site scripting attacks, potentially allowing execution of arbitrary scripts in the context of the affected web application. The CVSS 4.0 score is low (2.1), reflecting the high attack complexity, partial user interaction, and limited scope of impact.

Mitigation Recommendations

Upgrade serialize-javascript to version 7.1.3 or later, where the vulnerability is fixed. No other mitigations are indicated by the vendor advisory. Patch status is confirmed fixed in 7.1.3.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-10-23T19:37:27.177Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6adbd6bad73cc49347c37225

Added to database: 10/23/2026, 21:50:50 UTC

Last enriched: 10/23/2026, 22:05:14 UTC

Last updated: 10/23/2026, 22:06:00 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses