CVE-2026-59940
seroval: Seroval: `seroval.fromJSON()` Promise resolver type confusion invokes attacker-controlled methods during deserialization
Einstufung nach Quelle
Trivys eigenes Label ist CRITICAL. Kritisch laut GHSA, Red Hat.
Beschreibung
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.
Betroffene Pakete und behobene Versionen
| Quelle | Paket | Behoben in |
|---|---|---|
| npm::GitHub Security Advisory npm | seroval | 1.5.3 |
Referenzen
- 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