CVE-2026-59940 Seroval: `seroval.fromJSON()` Promise resolver type confusion invokes attacker-controlled methods during deserialization
CriticalCVSS 9.8
EPSS 0.81%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
- Technology
- Red Hat
Description
Seroval facilitates JS value stringification, including complex structures beyond JSON.stringify capabilities. Prior to 1.5.3, seroval.fromJSON() allows attacker-controlled JSON Promise control nodes to operate on values from the general deserialization reference table without verifying genuine internal Promise resolver records, causing deserialization side effects with plugins enabled and potentially unintended server-side invocation or remote code execution when downstream frameworks register callable wrappers. This issue is fixed in version 1.5.3.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm seroval(npm) | < 1.5.3; <= 1.5.2 | 1.5.3 | Fixed |
| lxsmnsyc seroval | = < 1.5.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| lxsmnsyc seroval | = < 1.5.3 | No fix listed |
| npm seroval(npm) | <= 1.5.2 | No fix listed |
| npm seroval(npm) | < 1.5.3 | 1.5.3 |
References
- https://github.com/lxsmnsyc/seroval/security/advisories/GHSA-mv8w-475r-vwqw vendor-advisory
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2517912 issue-tracking
- www.cve.org
- nvd.nist.gov
- www.npmjs.com
- github.com
- github.com product
- ENISA EUVD EUVD-2026-60942 third-party-advisory