Critical severityNVD Advisory· Published Feb 9, 2022· Updated Aug 3, 2024
Prototype Pollution leading to Remote Code Execution in superjson
CVE-2022-23631
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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
superjsonnpm | < 1.8.1 | 1.8.1 |
blitznpm | < 0.45.3 | 0.45.3 |
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- github.com/advisories/GHSA-5888-ffcr-r425ghsax_refsource_MISCADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-23631ghsaADVISORY
- github.com/blitz-js/superjson/security/advisories/GHSA-5888-ffcr-r425ghsax_refsource_CONFIRMWEB
- www.sonarsource.com/blog/blitzjs-prototype-pollutionghsaWEB
- www.sonarsource.com/blog/blitzjs-prototype-pollution/mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.