CVE-2022-23631 Prototype Pollution leading to Remote Code Execution in superjson
CriticalCVSS 9.8
EPSS 2.7%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
5 packages: 4 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| blitzjs blitz | < 0.45.3 | 0.45.3 | Fixed |
| blitzjs superjson | < 1.8.1 | 1.8.1 | Fixed |
| npm blitz(npm) | < 0.45.3 | 0.45.3 | Fixed |
| npm superjson(npm) | < 1.8.1 | 1.8.1 | Fixed |
| blitz-js superjson | = < 1.8.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm superjson(npm) | < 1.8.1 | 1.8.1 |
| npm blitz(npm) | < 0.45.3 | 0.45.3 |
| blitz-js superjson | = < 1.8.0 | No fix listed |
| blitzjs blitz | < 0.45.3 | 0.45.3 |
| blitzjs superjson | < 1.8.1 | 1.8.1 |
References
- https://github.com/blitz-js/superjson/security/advisories/GHSA-5888-ffcr-r425 exploit third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://www.sonarsource.com/blog/blitzjs-prototype-pollution/ exploit third-party-advisory
- https://github.com/advisories/GHSA-5888-ffcr-r425 exploit third-party-advisory vendor-advisory
- github.com product