CVE-2026-115897
published low CVSS 4.0 · 2.1Serialize JavaScript: Cross-site scripting (XSS) via unescaped </script at the end of a serialized function body
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| yahoo | — | serialize-javascript< 7.1.3 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | agama-web-uiaarch64 | Advisory build | 25+475.275dd4727-56.1 | OPENSUSE-SU-2026:12424-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | agama-web-uippc64le | Advisory build | 25+475.275dd4727-56.1 | OPENSUSE-SU-2026:12424-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | agama-web-uis390x | Advisory build | 25+475.275dd4727-56.1 | OPENSUSE-SU-2026:12424-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | agama-web-uix86_64 | Advisory build | 25+475.275dd4727-56.1 | OPENSUSE-SU-2026:12424-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.1 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| yahoo | serialize-javascript | < 7.1.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
4- https://github.com/yahoo/serialize-javascript/commit/2864b3c6260a3bfd52d2db3e70d1a079de108a61
- https://github.com/yahoo/serialize-javascript/pull/235
- https://github.com/yahoo/serialize-javascript/releases/tag/v7.1.3
- https://github.com/yahoo/serialize-javascript/security/advisories/GHSA-m5mm-p8h7-m29v
Provider assertions
2GitHub_M · cna
Serialize JavaScript: Cross-site scripting (XSS) via unescaped </script at the end of a serialized function body
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 29ed0fec7e19a630428832baee185be177e662c83822ec969cbc3247e54a440a
- Ingested
- 26 Oct 2026, 17:45:29 UTC
- Source record
- Official CVE record