CVE-2026-97711

Source
https://cve.org/CVERecord?id=CVE-2026-97711
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97711.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-97711
Aliases
Downstream
CGA (12)
CLSA (1)
DEBIAN (1)
UBUNTU (1)
Published
2026-09-29T16:00:33Z
Modified
2026-10-02T03:30:22Z
Severity
  • 2.3 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N CVSS Calculator
Summary
Serialize JavaScript: Cross-site scripting (XSS) via unescaped </script> in serialized function bodies
Details

Serialize 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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-79"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97711.json"
}
References

Affected packages

Git / github.com/yahoo/serialize-javascript

Affected ranges

Type
GIT
Repo
https://github.com/yahoo/serialize-javascript
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "introduced":  "7.1.1"
        },
        {
            "fixed":  "7.1.2"
        }
    ],
    "source":  [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Affected versions

v7.*
v7.1.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97711.json"