CVE-2026-116582
MEDIUM 4.7CVSS 3.1Seroval: Script injection through RegExp sources in serialized output
Seroval facilitates JavaScript value stringification, including complex structures beyond JSON.stringify capabilities. Prior to 1.0.0 and from 1.5.5 until 1.6.10, the JavaScript-output APIs serialize a RegExp source containing a less-than character without the escaping needed for an HTML script element. An application is affected when it builds regular expression syntax from untrusted input, serializes that RegExp through serialize, serializeAsync, crossSerialize, crossSerializeAsync, crossSerializeStream, Serializer, or compileJSON, and embeds the result in an HTML script element. The crafted source can terminate the element and execute script in the page received by another user. This issue is fixed in version 1.6.10.
- Published
- 26 Oct 2026
- Last modified
- 30 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-116CWE-79
- Also known as
- GHSA-9wx9-5pv9-3349
- Sources
- NVDJSONOSV GHSA-9wx9-5pv9-3349JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | seroval | >= 1.5.5, < 1.6.10 | 1.6.10 |
| OSV | npm | seroval | < 1.0.0 | 1.0.0 |
References
- https://github.com/lxsmnsyc/seroval/commit/f94ee0b63936dae954ff50d5b5e8ea7cb9b284e6 · WEB
- https://github.com/lxsmnsyc/seroval/releases/tag/seroval@1.6.10 · WEB
- https://github.com/lxsmnsyc/seroval/security/advisories/GHSA-9wx9-5pv9-3349 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-116582 · ADVISORY
- https://github.com/lxsmnsyc/seroval · PACKAGE
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 26 Oct 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 28 Oct 2026)