Prototype Pollution leading to Remote Code Execution in superjson
cve-program · CVE-2022-23631
Publishedsuperjson 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.
Read the publisher's advisoryeuvd · EUVD-2022-0835
Publishedsuperjson 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.
Read the publisher's advisorynvd · CVE-2022-23631
Publishedsuperjson 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.
Read the publisher's advisoryosv · GHSA-5888-ffcr-r425
Published### 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: * Open an issue in https://github.com/blitz-js/superjson * Email us at [email protected] ### References * https://www.sonarsource.com/blog/blitzjs-prototype-pollution/
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2022-23631 · CVE overview and exploitation status
cve-program · CVE-2022-23631
- https://github.com/blitz-js/superjson/security/advisories/GHSA-5888-ffcr-r425
- https://github.com/advisories/GHSA-5888-ffcr-r425
- https://www.sonarsource.com/blog/blitzjs-prototype-pollution/
euvd · EUVD-2022-0835
- https://github.com/blitz-js/superjson/security/advisories/GHSA-5888-ffcr-r425
- https://github.com/advisories/GHSA-5888-ffcr-r425
- https://www.sonarsource.com/blog/blitzjs-prototype-pollution/
nvd · CVE-2022-23631
- https://github.com/advisories/GHSA-5888-ffcr-r425
- https://github.com/blitz-js/superjson/security/advisories/GHSA-5888-ffcr-r425
- https://www.sonarsource.com/blog/blitzjs-prototype-pollution/
osv · GHSA-5888-ffcr-r425
Related changes
Linked by CVE identifierNo related changes are available here.