Skip to content
Heist/ feed
Low

Serialize JavaScript: Cross-site scripting (XSS) via unescaped

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-115897

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-115897

serialize-javascript

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "vendor": "yahoo",
    "product": "serialize-javascript",
    "versions": [
      {
        "status": "affected",
        "version": "< 7.1.3"
      }
    ]
  }
]
Related CVEs
CVE-2026-115897

Source reference: /cveMetadata/cveId

Publisher severity

low

Source reference: /containers/cna/metrics

Event
#53291 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement