Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. superjson
  4. ›
  5. CVE-2022-23631

CVE-2022-23631: Improper Control of Generation of Code ('Code Injection')

February 9, 2022 (updated January 9, 2024)

superjson is a program to allow JavaScript expressions to be serialized to a superset of JSON. 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 Users are advised to update. There are no known workarounds for this issue.

References

  • github.com/advisories/GHSA-5888-ffcr-r425
  • github.com/blitz-js/superjson/security/advisories/GHSA-5888-ffcr-r425

Code Behaviors & Features

Detect and mitigate CVE-2022-23631 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.8.1

Fixed versions

  • 1.8.1

Solution

Upgrade to version 1.8.1 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/superjson/CVE-2022-23631.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:13 +0000.