Advisory

GHSA-5888-ffcr-r425

Also known as: CVE-2022-23631

Summary

Prototype Pollution leading to Remote Code Execution in superjson

Details

Impact

This is critical vulnerability, as it allows to run arbitrary code on any server using superjson input, including a Blitz.js server, without prior authentication or knowledge. Attackers gain full control over the server so they could steal and manipulate data or attack further systems. The only requirement is that the server implements at least one endpoint which uses superjson during request processing. In the case of Blitz.js, it would be at least one RPC call.

Patches
This has been patched in superjson 1.8.1 and Blitz.js 0.45.3.

If you are unable to upgrade to Blitz.js 0.45.3 in a timely manner, you can instead upgrade only superjson to version 1.8.1 using yarn resolutions are similar. Blitz versions < 0.45.3 are only affected because they used superjson versions < 1.8.1.

Workarounds
None

For more information
If you have any questions or comments about this advisory:

References

  • https://www.sonarsource.com/blog/blitzjs-prototype-pollution/

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-02-09 22:20 UTC
Modified
2026-07-08 06:29 UTC

Affected packages and fixes

superjson

npm · All systems

Affected

  • introduced 0, fixed 1.8.1 (semver)

Fixed versions

1.8.1

Fix

blitz

npm · All systems

Affected

  • introduced 0, fixed 0.45.3 (semver)

Fixed versions

0.45.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences