CVE-2026-59940
seroval: Seroval: `seroval.fromJSON()` Promise resolver type confusion invokes attacker-controlled methods during deserialization
Sévérité par source
Le label propre à Trivy est CRITICAL. Critique selon GHSA, 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.
Paquets affectés et versions corrigées
| Source | Paquet | Corrigé en |
|---|---|---|
| npm::GitHub Security Advisory npm | seroval | 1.5.3 |
Références
- https://access.redhat.com/security/cve/CVE-2026-59940
- https://github.com/lxsmnsyc/seroval
- https://github.com/lxsmnsyc/seroval/security/advisories/GHSA-mv8w-475r-vwqw
- https://nvd.nist.gov/vuln/detail/CVE-2026-59940
- https://www.cve.org/CVERecord?id=CVE-2026-59940
- https://www.npmjs.com/package/seroval/v/1.5.3