# CVE-2026-97711: Serialize JavaScript: Cross-site scripting (XSS) via unescaped \</script\> in serialized function bodies

- Priority: **Routine**
- Reason: Not severe (CVSS 2.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-29 · Modified: 2026-09-29
- Aliases: UBUNTU-CVE-2026-97711, DEBIAN-CVE-2026-97711, CGA-7486-hgp2-v678, CGA-7h5v-v88j-8j26, CGA-7j85-g85v-h43g, CGA-r55x-pw6j-7x39, GHSA-gfhx-hw2g-v5hg, CGA-22q8-5px6-qfwr, CGA-3j3w-765f-9qj4, CGA-578q-8447-436v, CGA-8j35-7f68-vrhh, CGA-ch7f-f363-q4jp, CGA-jvfh-w96p-fggw, CGA-qq45-g873-xq25, CGA-xx27-26gh-9xch
- Record: https://cvemate.com/vulnerability/CVE-2026-97711 · JSON: https://cvemate.com/vulnerability/CVE-2026-97711/json

## Description

```text
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.
```

## Signals

- CVSS: 2.3 low (v4.0, CVE.org) 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
- EPSS: 0.318%, percentile 26.64%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard argo-workflows-ui-3.7 (Chainguard): \< 3.7.18-r9
- chainguard argo-workflows-ui-4.0 (Chainguard): \< 4.0.12-r1
- chainguard argo-workflows-ui-4.1 (Chainguard): \< 4.1.4-r1
- wolfi argo-workflows-ui-4.0 (Wolfi): \< 4.0.12-r1
- debian node-serialize-javascript (Debian): All versions (No fix recorded) \| \< 7.1.2+~5.0.4-1
- ubuntu node-serialize-javascript (Ubuntu): All versions (No fix recorded)
- Npm serialize-javascript (Npm): ≥ 7.1.1, \< 7.1.2
- yahoo serialize-javascript: ≥ 7.1.1, \< 7.1.2

## References

- <https://github.com/yahoo/serialize-javascript/security/advisories/GHSA-gfhx-hw2g-v5hg>
- <https://github.com/yahoo/serialize-javascript/commit/2bdbaaff9cb8a4639135eb24cfcd383d3fefb534>
- <https://github.com/yahoo/serialize-javascript/releases/tag/v7.1.2>
- <https://ubuntu.com/security/CVE-2026-97711>
- <https://www.cve.org/CVERecord?id=CVE-2026-97711>
- <https://security-tracker.debian.org/tracker/CVE-2026-97711>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97711.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-97711>
- <https://github.com/yahoo/serialize-javascript>

---

Data as of 2026-12-05T09:54:26.235Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
