Serialize JavaScript: Cross-site scripting (XSS) via unescaped </script at the end of a serialized function body
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| yahoo | serialize-javascript | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Yahoo | Serialize-javascript |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-m5mm-p8h7-m29v | Serialize JavaScript: Cross-site scripting (XSS) via unescaped </script at the end of a serialized function body |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.307% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Yahoo
Yahoo serialize-javascript |
|
| Vendors & Products |
Yahoo
Yahoo serialize-javascript |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Serialize 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. | |
| Title | Serialize JavaScript: Cross-site scripting (XSS) via unescaped </script at the end of a serialized function body | |
| Weaknesses | CWE-79 | |
| References |
|
|
| Metrics |
cvssV4_0
|