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

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.68%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2022-02-09T21:55:10.000Z
- Modified: 2026-07-08T06:29:19.779Z
- Also known as: GHSA-5888-ffcr-r425
- Weaknesses: CWE-94, CWE-1321
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- blitz-js superjson: < 1.8.0
- superjson (npm): before 1.8.1
- blitz (npm): before 0.45.3
- blitzjs blitz: before 0.45.3
- blitzjs superjson: before 1.8.1

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/blitz-js/superjson/security/advisories/GHSA-5888-ffcr-r425> (exploit, third-party-advisory, web)
- <https://github.com/advisories/GHSA-5888-ffcr-r425> (exploit, advisory, third-party-advisory)
- <https://www.sonarsource.com/blog/blitzjs-prototype-pollution/> (exploit, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-23631> (advisory)
- <https://github.com/blitz-js/superjson> (package)
- <https://www.sonarsource.com/blog/blitzjs-prototype-pollution> (web)

## Sources

- CVE List: [CVE-2022-23631](https://www.cve.org/CVERecord?id=CVE-2022-23631), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-5888-ffcr-r425](https://github.com/advisories/GHSA-5888-ffcr-r425), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2022-23631](https://nvd.nist.gov/vuln/detail/CVE-2022-23631), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-23631 · Whole record: https://cve.day/CVE-2022-23631.json · Rebuilt by cve.day 2026-11-25T22:58:09.595Z
