Prototype Pollution leading to Remote Code Execution in superjson
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| blitz-js | superjson | before 1.8.0 | 1.8.0 | Patch available | CNA |
| — | superjson (npm) | before 1.8.1 | 1.8.1 | Patch available | GHSA-5888-ffcr-r425 |
| — | blitz (npm) | before 0.45.3 | 0.45.3 | Patch available | GHSA-5888-ffcr-r425 |
- superjson Vendorblitz-js Affected before 1.8.0 Fixed in 1.8.0 Patch available CNA
- superjson (npm) Vendor— Affected before 1.8.1 Fixed in 1.8.1 Patch available GHSA-5888-ffcr-r425
- blitz (npm) Vendor— Affected before 0.45.3 Fixed in 0.45.3 Patch available GHSA-5888-ffcr-r425
Remediation
- Fix · CNA superjson (blitz-js) Fixed in 1.8.0
- Fix · GHSA-5888-ffcr-r425 superjson (npm) Fixed in 1.8.1 Advisory →
- Fix · GHSA-5888-ffcr-r425 blitz (npm) Fixed in 0.45.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-23631
- 2026-10-03 Alias added: GHSA-5888-ffcr-r425
References
Exploit 3
Sources
- CVE-2022-23631 · CVE Program
- CVE-2022-23631 · NVD
- FIRST EPSS
- GHSA-5888-ffcr-r425 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences