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


Severity

0.0
critical
0
10

    Threat Intelligence

    EPSS
    0.48% (76th 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 ID SNYK-JS-SUPERJSON-2397274
  • published 10 Feb 2022
  • disclosed 10 Feb 2022
  • credit paul-gerste-sonarsource

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
Expand this section

Snyk

9 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Changed
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High
Expand this section

NVD

9.8 critical