Yahoo Serialize Javascript vulnerabilities
5 vulnerabilities
Known vulnerabilities in Yahoo Serialize Javascript, newest first, with CVSS severity, EPSS, KEV listings, ransomware use and the affected versions.
RoutineCVE-2026-115897yahoo · serialize-javascript +1 moreSerialize JavaScript: Cross-site scripting (XSS) via unescaped </script at the end of a serialized function bodySerialize JavaScript serializes JavaScript values to a superset of JSON that includes regular expressions and functions. Prior to 7.1.3, the function-source escaping logic does not neutralize a bare closing-script prefix when attacker-influenced function source text ends exactly at that prefix. Because each function body is escaped independently, a delimiter supplied by surrounding serialized output can terminate an HTML script element, and a later serialized value supplies injected markup that becomes a live element in the page. Exploitation requires control of a serialized function's source text, such as through a spoofed toString(). This issue is fixed in version 7.1.3.CVSS2.1LowEPSS0.32%RoutineCVE-2026-115754yahoo · serialize-javascript +45 moreSerialize JavaScript: Cross-site scripting (XSS) via unescaped </script at the end of a serialized function bodySerialize JavaScript serializes JavaScript values to a superset of JSON that includes regular expressions and functions. Prior to 7.1.3, the function-source escaping logic does not neutralize a bare closing-script prefix when attacker-influenced function source text ends exactly at that prefix. Because each function body is escaped independently, a delimiter supplied by surrounding serialized output can terminate an HTML script element, and a later serialized value supplies injected markup that becomes a live element in the page. Exploitation requires control of a serialized function's source text, such as through a spoofed toString(). This issue is fixed in version 7.1.3.CVSS2.1LowEPSS0.23%RoutineCVE-2026-97711yahoo · serialize-javascript +7 moreSerialize JavaScript: Cross-site scripting (XSS) via unescaped </script> in serialized function bodiesSerialize 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.CVSS2.3LowEPSS0.32%RoutineCVE-2026-34043yahoo · serialize-javascript +70 moreSerialize JavaScript has CPU Exhaustion Denial of Service via crafted array-like objectsSerialize JavaScript to a superset of JSON that includes regular expressions and functions. Prior to version 7.0.5, there is a Denial of Service (DoS) vulnerability caused by CPU exhaustion. When serializing a specially crafted "array-like" object (an object that inherits from Array.prototype but has a very large length property), the process enters an intensive loop that consumes 100% CPU and hangs indefinitely. This issue has been patched in version 7.0.5.CVSS7.5HighEPSS0.54%RoutineCVE-2019-16769yahoo · serialize-javascript +2 moreAffected versions of serialize-javascript are vulnerable to Cross-site Scripting (XSS)The serialize-javascript npm package before version 2.1.1 is vulnerable to Cross-site Scripting (XSS). It does not properly mitigate against unsafe characters in serialized regular expressions. This vulnerability is not affected on Node.js environment since Node.js's implementation of RegExp.prototype.toString() backslash-escapes all forward slashes in regular expressions. If serialized data of regular expression objects are used in an environment other than Node.js, it is affected by this vulnerability.CVSS5.4MediumEPSS0.80%