Vulnerabilities in pkg:npm/seroval

PACKAGE
Advisory Identifier: GHSA-p6vx-979v-rg4c
Advisory Summary

CVE-2026-104846 is a CRITICAL (CVSS 9.8) `fromjson()` promise thenable assimilation invokes vulnerability (CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')) affecting Seroval libraries in the npm ecosystem. The issue involves `fromjson()` promise thenable assimilation invokes plugin-produced callables (bypass of ghsa-mv8w-475r-vwqw). Remediation is available by upgrading affected packages to version 1.6.2.

8 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/seroval

8 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/seroval. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-p6vx-979v-rg4c CVE-2026-104846 CRITICAL Seroval: `fromJSON()` Promise thenable assimilation invokes plugin-produced callables (bypass of GHSA-mv8w-475r-vwqw)
GHSA-jp82-f5mq-hwhp CVE-2026-104845 HIGH Seroval: Memory exhaustion via unchecked TypedArray length in JSON deserialization
GHSA-mv8w-475r-vwqw CVE-2026-59940 CRITICAL seroval: `seroval.fromJSON()` Promise resolver type confusion invokes attacker-controlled methods during deserialization
GHSA-hx9m-jf43-8ffr CVE-2026-23956 HIGH seroval affected by Denial of Service via RegExp serialization
GHSA-3j22-8qj3-26mx CVE-2026-24006 HIGH Seroval affected by Denial of Service via Deeply Nested Objects
GHSA-66fc-rw6m-c2q6 CVE-2026-23957 HIGH Seroval affected by Denial of Service via Array serialization
GHSA-3rxj-6cgf-8cfw CVE-2026-23737 HIGH seroval Affected by Remote Code Execution via JSON Deserialization
GHSA-hj76-42vx-jwp4 CVE-2026-23736 HIGH seroval Affected by Prototype Pollution via JSON Deserialization

CVE-2026-104846 at a Glance

CVE Identifier CVE-2026-104846
GHSA Identifier GHSA-p6vx-979v-rg4c
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')
Affected Product Seroval
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-104846

To remediate this vulnerability, upgrade all affected Seroval dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

seroval fixed: 1.6.2
npm install seroval@1.6.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls seroval

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-104846, inspect your project dependencies using npm:

npm ls seroval

Analyze the terminal output to locate any version of Seroval in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.2), your application is affected.

Note: The npm ls seroval command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-843: Access of Resource Using Incompatible Type ('Type Confusion'), where the product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type. In Seroval, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A fulfilled Promise node deserialized by `fromJSON()` can trigger unintended invocation of a plugin-produced callable through native ECMAScript thenable assimilation. This bypasses the type-confusion fix in `seroval@1.5.3` (GHSA-mv8w-475r-vwqw / CVE-2026-59940) and affects every plugin-capable release from `0.12.0` through the current `1.6.0`.

CVE-2026-104846 Affected Seroval Versions

1 component(s)
Fixed Versions:
1.6.2
Product / Package Ecosystem Affected Versions Fixed Version
seroval
npm
≥ 0.12.0
< 1.6.2
1.6.2

References

Frequently Asked Questions

What is CVE-2026-104846?
CVE-2026-104846 is a security vulnerability in Seroval involving `fromJSON()` Promise thenable assimilation invokes plugin-produced callables (bypass of GHSA-mv8w-475r-vwqw) under CWE-843: Access of Resource Using Incompatible Type ('Type Confusion').
Which Seroval versions are affected?
Affected versions include releases prior to 1.6.2 across affected packages: seroval.
What version fixes CVE-2026-104846?
Upgrading to 1.6.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is seroval affected?
Yes, seroval is affected in releases prior to 1.6.2. Upgrade your dependency to 1.6.2 or later.
What is the CVSS score of CVE-2026-104846?
CVE-2026-104846 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-104846?
CVE-2026-104846 is classified under CWE-843: Access of Resource Using Incompatible Type ('Type Confusion') (The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.).
How can I check npm dependencies for CVE-2026-104846?
Run the dependency tree command: 'npm ls seroval'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-p6vx-979v-rg4c",
  "modified" : "2026-10-05T23:40:43Z",
  "published" : "2026-10-05T23:40:43Z",
  "aliases" : [ "CVE-2026-104846" ],
  "summary" : "Seroval: `fromJSON()` Promise thenable assimilation invokes plugin-produced callables (bypass of GHSA-mv8w-475r-vwqw)",
  "details" : "A fulfilled Promise node deserialized by `fromJSON()` can trigger unintended invocation of a plugin-produced callable through native ECMAScript thenable assimilation. This bypasses the type-confusion fix in `seroval@1.5.3` (GHSA-mv8w-475r-vwqw / CVE-2026-59940) and affects every plugin-capable release from `0.12.0` through the current `1.6.0`.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "seroval"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.12.0"
      }, {
        "fixed" : "1.6.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.6.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/lxsmnsyc/seroval/security/advisories/GHSA-p6vx-979v-rg4c"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-104846"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/lxsmnsyc/seroval/commit/f1ffcc96d259f9b5b3d71feb262b58240c90e7b7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/lxsmnsyc/seroval"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-843" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-05T23:40:43Z",
    "nvd_published_at" : "2026-10-02T16:16:47Z"
  }
}