CVE-2022-23631
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. High risk of data exposure, data tampering, service disruption.
- Exploit odds
- 2.7% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 2.7% in the next 30 days (EPSS).
- Severity: 9.0 CRITICAL (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 2.7% · EPSS, next 30 days
- Weakness
- CWE-94 · Code injection
- Record status
- Modified
Affected
- Blitzjs Blitz < 0.45.3
- Blitzjs Superjson < 1.8.1
Attack profile CVSS 3.1 · 9.0
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Raw vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2022-23631.md and follow it. Check whether this project is affected by CVE-2022-23631. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/advisories/GHSA-5888-ffcr-r425
- https://github.com/blitz-js/superjson/security/advisories/GHSA-5888-ffcr-r425
- https://github.com/advisories/GHSA-5888-ffcr-r425
- https://github.com/blitz-js/superjson/security/advisories/GHSA-5888-ffcr-r425
References
- 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/
- 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/