Remote Code Execution (RCE) Affecting superjson package, versions <1.8.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.46% (77th 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 Learn

Learn about Remote Code Execution (RCE) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-SUPERJSON-2397274
  • published10 Feb 2022
  • disclosed10 Feb 2022
  • creditpaul-gerste-sonarsource

Introduced: 10 Feb 2022

CVE-2022-23631  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade superjson to version 1.8.1 or higher.

Overview

superjson is a Safely serialize JavaScript expressions to a superset of JSON, which includes Dates, BigInts, and more.

Affected versions of this package are vulnerable to Remote Code Execution (RCE) as it allows to run arbitrary code on any server using superjson input, including a Blitz.js server, without prior authentication or knowledge. Attackers gain full control over the server so they could steal and manipulate data or attack further systems.

CVSS Scores

version 3.1