Access of Resource Using Incompatible Type ('Type Confusion') Affecting org.webjars.npm:seroval package, versions [0.12.0,1.6.2)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.35% (26th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGWEBJARSNPM-20417222
  • published13 Oct 2026
  • disclosed2 Oct 2026
  • creditAyoub Elaich

Introduced: 2 Oct 2026

NewCVE-2026-104846  (opens in a new tab)
CWE-843  (opens in a new tab)

How to fix?

Upgrade org.webjars.npm:seroval to version 1.6.2 or higher.

Overview

org.webjars.npm:seroval is a Stringify JS values

Affected versions of this package are vulnerable to Access of Resource Using Incompatible Type ('Type Confusion') via the deserializePromise and deserializePromiseFulfill functions in deserializer.ts, where a thenable object (an object with a then property that is a function) can be passed as the resolved or rejected value of a deserialized Promise node. Because the deserializer previously did not check whether the deserialized value was thenable before passing it to the deferred resolver, an attacker supplying a malicious serialized payload can cause the Promise resolution to follow the attacker-controlled thenable, enabling prototype pollution of the JavaScript runtime environment. This allows full compromise of object prototypes, leading to arbitrary property injection across all objects in the process.

CVSS Base Scores

version 4.0
version 3.1