Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
The serialize-javascript npm package, versions before 7.1.3, can emit a function value's source unescaped when that source ends in a bare "</script" with nothing after it in the same body, so output embedded in a script element can break out of it. An attacker would need to control the source text of a serialized function, for example through a spoofed toString(), and could then inject markup such as an image element into the page. Upgrade to serialize-javascript 7.1.3, which escapes this form at the end of a function body.
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 (VulnCheck) |
- CISA KEV Not listed.
- EPSS 0.0031, the 23rd percentile, on 9 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 13:33 UTC First seen by agentprime
- 31 Oct 2026, 13:33 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-m5mm-p8h7-m29v
- OSV: GHSA-m5mm-p8h7-m29v
- github.com/yahoo/serialize-javascript/security/advisories/GHSA-m5mm-p8h7-m29v
- github.com/yahoo/serialize-javascript/pull/235
- github.com/yahoo/serialize-javascript/commit/2864b3c6260a3bfd52d2db3e70d1a079de108a61
- github.com/yahoo/serialize-javascript
- github.com/yahoo/serialize-javascript/releases/tag/v7.1.3