UBUNTU-CVE-2026-97711

Source
https://ubuntu.com/security/CVE-2026-97711
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-97711.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-97711
Upstream
Published
2026-09-29T16:17:00Z
Modified
2026-10-01T00:22:47Z
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
  • Ubuntu - medium
Summary
[none]
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.

References

Affected packages

Ubuntu:22.04:LTS / node-serialize-javascript

Package

Name
node-serialize-javascript
Purl
pkg:deb/ubuntu/node-serialize-javascript?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

5.*
5.0.1-2
6.*
6.0.0-1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "node-serialize-javascript",
            "binary_version":  "6.0.0-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-97711.json"

Ubuntu:24.04:LTS / node-serialize-javascript

Package

Name
node-serialize-javascript
Purl
pkg:deb/ubuntu/node-serialize-javascript?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

6.*
6.0.1-1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "node-serialize-javascript",
            "binary_version":  "6.0.1-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-97711.json"

Ubuntu:26.04:LTS / node-serialize-javascript

Package

Name
node-serialize-javascript
Purl
pkg:deb/ubuntu/node-serialize-javascript?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

6.*
6.0.2-1
7.*
7.0.4+~5.0.4-1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "node-serialize-javascript",
            "binary_version":  "7.0.4+~5.0.4-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-97711.json"