CVE-2022-36059:
matrix-js-sdk Prototype Pollution vulnerability
7.2
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.74215%
CWE
Published
3/28/2023
Updated
3/28/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
matrix-js-sdk | npm | < 19.4.0 | 19.4.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
Prototype pollution vulnerabilities typically occur in functions that: 1) Process
untrusted JSON input 2) Use recursive object merging 3) Assign properties using user-controlled keys. The advisory specifically mentions event processing impacts, pointing to functions handling event content parsing (EventUtils
) and sync processing (SyncApi
). The deepCopy
utility is a common pattern vulnerable to prototype pollution when not using safe merging. The high confidence for utils.deepCopy
and EventUtils.parseEventContent
comes from their direct role in processing event data, while SyncApi._processRoomEvents
gets medium confidence due to its position in the sync workflow mentioned in workarounds.