CVE-2022-36059 | Prototype pollution in matrix-js-sdk

matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. In versions prior to 19.4.0 events sent with special strings in key places can temporarily disrupt or impede the matrix-js-sdk from functioning properly, potentially impacting the consumer's ability to process data safely. Note that the matrix-js-sdk can appear to be operating normally but be excluding or corrupting runtime data presented to the consumer. This issue has been fixed in matrix-js-sdk 19.4.0 and users are advised to upgrade. Users unable to upgrade may mitigate this issue by redacting applicable events, waiting for the sync processor to store data, and restarting the client. Alternatively, redacting the applicable events and clearing all storage will often fix most perceived issues. In some cases, no workarounds are possible.

Published: 2023-03-28 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2022-36059 is rated Moderate Risk (49.5/100): CVSS High severity, with low exploitation likelihood (EPSS 0.26%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2022-36059

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-26 0.60% 0.26% -0.35%
2 2026-03-31 1.13% 0.60% -0.53%
3 2026-01-05 1.13%

Full EPSS history (13 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2022-36059

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.2 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 4.2 [email protected]
5.3 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 1.4 [email protected]

Weakness enumeration for CVE-2022-36059

GitHub Security Advisory for CVE-2022-36059

GHSA-rfv9-x7hh-xc32 · Severity: high · Ecosystem: npm — matrix-js-sdk Prototype Pollution vulnerability

OS Trackers for CVE-2022-36059

vendor priority summary link
alpine medium CVE-2022-36059: 2 source package rows (element-web, riot-web); 8 state rows across 7 repos (3.17-community, 3.18-community, 3.19-community, 3.20-community, 3.21-community, 3.22-community, edge-community); fixed 8, open 0. https://security.alpinelinux.org/vuln/CVE-2022-36059
debian unimportant CVE-2022-36059 unimportant priority: Debian including 2 source packages (node-matrix-js-sdk, thunderbird), 6 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5, open 1. https://security-tracker.debian.org/tracker/CVE-2022-36059
redhat medium https://access.redhat.com/security/cve/CVE-2022-36059
suse high CVE-2022-36059 severity important: SUSE including 11 source package names (MozillaThunderbird-102.2.1-1.1, MozillaThunderbird-102.2.2-150200.8.82.1, …), 50 product×package rows across 19 product lines (SUSE Liberty Linux 7, SUSE Liberty Linux 8, … (19 product lines)): Fixed 50. https://www.suse.com/security/cve/CVE-2022-36059/
ubuntu medium CVE-2022-36059 medium priority: Ubuntu including 2 source packages (node-matrix-js-sdk, thunderbird), 26 status rows across 13 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): ignored 7, not-affected 6, DNE 5, needs-triage 4, released 4. https://ubuntu.com/security/CVE-2022-36059

Affected software / configurations for CVE-2022-36059

Vendor Product Version Raw CPE
matrix javascript_sdk < 19.4.0 cpe:2.3:a:matrix:javascript_sdk:*:*:*:*:*:node.js:*:*

References for CVE-2022-36059

cvelogic Threat Intelligence