Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. seroval
  4. ›
  5. CVE-2026-59940

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

July 24, 2026

A type confusion issue in seroval.fromJSON() allowed attacker-controlled JSON input to cause Promise control nodes to operate on values from the general deserialization reference table without first verifying that those values were genuine internal promise resolver records.

In applications that deserialize untrusted Seroval JSON with plugins enabled, this could allow attacker-controlled deserialization side effects. In downstream server frameworks that register plugins returning callable wrappers, this primitive could become unintended server-side invocation and, depending on exposed application functionality, remote code execution or equivalent server compromise.

The issue was fixed in seroval@1.5.3.

References

  • github.com/advisories/GHSA-mv8w-475r-vwqw
  • github.com/lxsmnsyc/seroval/security/advisories/GHSA-mv8w-475r-vwqw
  • nvd.nist.gov/vuln/detail/CVE-2026-59940
  • www.npmjs.com/package/seroval/v/1.5.3

Code Behaviors & Features

Detect and mitigate CVE-2026-59940 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.5.3

Fixed versions

  • 1.5.3

Solution

Upgrade to version 1.5.3 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data
  • CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')

Source file

npm/seroval/CVE-2026-59940.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:18:16 +0000.