CVE-2022-23631
CRITICAL 9.8CVSS 3.1Prototype Pollution leading to Remote Code Execution in superjson
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.
- Published
- 9 Feb 2022
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-1321CWE-94
- Also known as
- GHSA-5888-ffcr-r425
- Sources
- NVDJSONOSV GHSA-5888-ffcr-r425JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | blitzjs | blitzcpe:2.3:a:blitzjs:blitz:*:*:*:*:*:node.js:*:* |
< 0.45.3 | 0.45.3 |
| NVD | blitzjs | superjsoncpe:2.3:a:blitzjs:superjson:*:*:*:*:*:node.js:*:* |
< 1.8.1 | 1.8.1 |
| OSV | npm | superjson | < 1.8.1 | 1.8.1 |
| OSV | npm | blitz | < 0.45.3 | 0.45.3 |
References
- https://github.com/advisories/GHSA-5888-ffcr-r425 · Exploit, Third Party Advisory, ADVISORY
- https://github.com/blitz-js/superjson/security/advisories/GHSA-5888-ffcr-r425 · Exploit, Third Party Advisory, WEB
- https://www.sonarsource.com/blog/blitzjs-prototype-pollution/ · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-23631 · ADVISORY
- https://github.com/blitz-js/superjson · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 9 Feb 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 9 Feb 2022)