CVE-2022-23631

Prototype Pollution leading to Remote Code Execution in superjson

Published Feb 9, 2022 CVSS 3.1 · 9.1 Critical EPSS 2.7% KEV · Not listed
Description
superjson is a program to allow JavaScript expressions to be serialized to a superset of JSON. In versions prior to 1.8.1 superjson allows input to run arbitrary code on any server using superjson input without prior authentication or knowledge. The only requirement is that the server implements at least one endpoint which uses superjson during request processing. This has been patched in superjson 1.8.1. Users are advised to update. There are no known workarounds for this issue.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-0835 superjson is a program to allow JavaScript expressions to be serialized to a superset of JSON. In versions prior to 1.8.1 superjson allows input to run arbitrary code on any server using superjson input without prior authentication or knowledge. The only requirement is that the server implements at least one endpoint which uses superjson during request processing. This has been patched in superjson 1.8.1. Users are advised to update. There are no known workarounds for this issue.
Github GHSA Github GHSA GHSA-5888-ffcr-r425 Prototype Pollution leading to Remote Code Execution in superjson
History
Type Values Removed Values Added
Description superjson is a program to allow JavaScript expressions to be serialized to a superset of JSON. In versions prior to 1.8.1 superjson allows input to run arbitrary code on any server using superjson input without prior authentication or knowledge. The only requirement is that the server implements at least one endpoint which uses superjson during request processing. This has been patched in superjson 1.8.1. Users are advised to update. There are no known workarounds for this issue. superjson is a program to allow JavaScript expressions to be serialized to a superset of JSON. In versions prior to 1.8.1 superjson allows input to run arbitrary code on any server using superjson input without prior authentication or knowledge. The only requirement is that the server implements at least one endpoint which uses superjson during request processing. This has been patched in superjson 1.8.1. Users are advised to update. There are no known workarounds for this issue.
Type Values Removed Values Added
Metrics epss

{'score': 0.00376}

epss

{'score': 0.0038}

Type Values Removed Values Added
Metrics epss

{'score': 0.00296}

epss

{'score': 0.00376}

Type Values Removed Values Added
Metrics epss

{'score': 0.00268}

epss

{'score': 0.00296}

Weaknesses
  • CWE-1321

    Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 3, 2024, 3:51 AM
Reserved
Jan 19, 2022, 12:00 AM
Status
Modified
Published
Feb 9, 2022, 10:15 PM
Modified
Jun 17, 2026, 4:30 AM