7.5high
Seroval `fromJSON`/`fromCrossJSON` denial of service via unvalidated array node length
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.51% (higher than 45% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-wp97-x4hv-qvhp
Description
Seroval facilitates JavaScript value stringification, including complex structures beyond JSON.stringify capabilities. From 1.4.1 until 1.6.8, fromJSON and fromCrossJSON do not require an array node's element list to be an actual array. A small crafted payload can supply an attacker-controlled length that determines memory allocation and decoder iterations independently of payload size, allowing an unauthenticated request to exhaust the process or block its thread. This issue is a residual bypass of the remediation for CVE-2026-23957. This issue is fixed in version 1.6.8.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| lxsmnsyc seroval | >= 1.4.1, < 1.6.8 | CVE List |
| seroval (npm) | from 1.4.1 before 1.6.8 | GitHub Advisory Database |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
Seroval facilitates JavaScript value stringification, including complex structures beyond JSON.stringify capabilities. From 1.4.1 until 1.6.8, fromJSON and fromCrossJSON do not require an array node's element list to be an actual array. A small crafted payload can supply an attacker-controlled length that determines memory allocation and decoder iterations independently of payload size, allowing an unauthenticated request to exhaust the process or block its thread. This issue is a residual bypass of the remediation for CVE-2026-23957. This issue is fixed in version 1.6.8.
GitHub Advisory Database
Summary
fromJSON and fromCrossJSON did not check that an array node's element list is an array. A small crafted payload could set the length the decoder used. That length controlled how much memory was allocated and how many times the decoder looped, and it did not depend on the size of the payload.
Impact
A service that passes untrusted input to fromJSON or fromCrossJSON can be made unavailable by an unauthenticated request.
- A small payload can allocate enough memory to end the process.
- A small payload can block the thread for seconds, or without end.
This affects any framework that decodes request bodies with these functions before its own validation runs.
This issue is a bypass of the fix for GHSA-66fc-rw6m-c2q6 in 1.4.1.
Patches
Fixed in seroval@1.6.8. The deserializer now rejects any node whose element list is not an array, and throws SerovalMalformedNodeError.
Workarounds
None. Upgrade to 1.6.8.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-116584 changed 2026-11-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wp97-x4hv-qvhp changed 2026-10-28 | CC-BY-4.0 |
| NVD | CVE-2026-116584 changed 2026-11-02 | Public domain |