Serialize JavaScript: Cross-site scripting (XSS) via unescaped
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.
- Products
- serialize-javascript
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-115897
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 15:55 UTC · Revision 2
Source evidence
Serialize JavaScript: Cross-site scripting (XSS) via unescaped
core-cve · Original sourcePublished 23 Oct 2026, 21:37 UTC
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.
cve:CVE-2026-115897
serialize-javascript
Fixed versions: Not specified
Complete source record
{
"id": "30cce4c2ccda76e0ee326b40b5b7b7e6db1de2efa5f5517081bd8e926b14c670",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-115897",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Serialize JavaScript: Cross-site scripting (XSS) via unescaped",
"summary": "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.",
"evidence": "cve:CVE-2026-115897",
"products": [
{
"name": {
"value": "serialize-javascript",
"evidence": "/containers/cna/affected/0/product"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": []
}
],
"severity": "low",
"structured": {
"id": "CVE-2026-115897",
"aliases": [
"CVE-2026-115897"
],
"metrics": [
{
"cvssV4_0": {
"version": "4.0",
"baseScore": 2.1,
"attackVector": "NETWORK",
"baseSeverity": "LOW",
"vectorString": "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",
"userInteraction": "PASSIVE",
"attackComplexity": "HIGH",
"attackRequirements": "PRESENT",
"privilegesRequired": "LOW",
"subIntegrityImpact": "LOW",
"vulnIntegrityImpact": "LOW",
"subAvailabilityImpact": "NONE",
"vulnAvailabilityImpact": "NONE",
"subConfidentialityImpact": "LOW",
"vulnConfidentialityImpact": "LOW"
}
}
],
"affected": [
{
"vendor": "yahoo",
"product": "serialize-javascript",
"versions": [
{
"status": "affected",
"version": "< 7.1.3"
}
]
}
],
"modified": "2026-10-26T17:41:50.594Z",
"provider": "cve",
"references": [
"https://github.com/yahoo/serialize-javascript/security/advisories/GHSA-m5mm-p8h7-m29v",
"https://github.com/yahoo/serialize-javascript/pull/235",
"https://github.com/yahoo/serialize-javascript/commit/2864b3c6260a3bfd52d2db3e70d1a079de108a61",
"https://github.com/yahoo/serialize-javascript/releases/tag/v7.1.3"
],
"provider_metadata": {
"adp": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-115897",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-10-26T15:39:04.934773Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-10-26T17:41:50.594Z"
}
}
],
"cna": {
"orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
"shortName": "GitHub_M",
"dateUpdated": "2026-10-23T21:37:41.097Z"
}
}
},
"related_cves": [
{
"value": "CVE-2026-115897",
"evidence": "/cveMetadata/cveId"
}
],
"security_relevant": true,
"severity_evidence": "/containers/cna/metrics"
},
"source_id": "core-cve",
"document_id": 326375,
"published_at": "2026-10-23T21:37:41.097+00:00"
}