p PatchFirst

CVE-2026-59940

CVE-2026-59940 · Seroval: `seroval.fromJSON()` Promise resolver type confusion invokes attacker-controlled methods during deserialization

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 9.8 · Critical · EPSS 0.8% · Fix available

Published
Updated

Stack: node

Affected products and versions

  • seroval

    Versions
    • < 1.5.3: Affected

    No fix published

  • seroval npm

    Affected ranges
    • SEMVER: < 1.5.3

    Update to 1.5.3

Original sources

Check your server →