Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
serialize-javascript 7.1.1 (>=7.1.1, <7.1.2) fails to escape a closing script tag in serialized function bodies, so output embedded in a script element can end early and inject HTML. An attacker who can supply a crafted function body that gets serialized into a page can run script in the page's origin, though data values are not affected. Upgrade to 7.1.2, the fixed version.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 2.3 | Low | 4.0 | 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 | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0032, the 25th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 13:34 UTC First seen by agentprime
- 31 Oct 2026, 13:34 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-gfhx-hw2g-v5hg
- OSV: GHSA-gfhx-hw2g-v5hg
- github.com/yahoo/serialize-javascript/security/advisories/GHSA-gfhx-hw2g-v5hg
- nvd.nist.gov/vuln/detail/CVE-2026-97711
- github.com/yahoo/serialize-javascript/commit/2bdbaaff9cb8a4639135eb24cfcd383d3fefb534
- github.com/yahoo/serialize-javascript
- github.com/yahoo/serialize-javascript/releases/tag/v7.1.2