Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/matrix-js-sdk@2.2.0-rc.2
purl pkg:npm/matrix-js-sdk@2.2.0-rc.2
Next non-vulnerable version 38.2.0
Latest non-vulnerable version 38.2.0
Risk 4.0
Vulnerabilities affecting this package (10)
Vulnerability Summary Fixed by
VCID-6szy-r2cd-9kfw
Aliases:
CVE-2024-50336
GHSA-xvg8-m4x3-w6xr
matrix-js-sdk has insufficient MXC URI validation which allows client-side path traversal ### Summary matrix-js-sdk before 34.11.0 is vulnerable to client-side path traversal via crafted MXC URIs. A malicious room member can trigger clients based on the matrix-js-sdk to issue arbitrary authenticated GET requests to the client's homeserver. ### Details The Matrix specification demands homeservers to [perform validation](https://spec.matrix.org/v1.12/client-server-api/#security-considerations-5) of the `server-name` and `media-id` components of MXC URIs with the intent to prevent path traversal. However, it is not mentioned that a similar check must also be performed on the client to prevent *client-side* path traversal. matrix-js-sdk fails to perform this validation. ### Patches Fixed in matrix-js-sdk 34.11.1. ### Workarounds None. ### References - https://spec.matrix.org/v1.12/client-server-api/#security-considerations-5 - https://blog.doyensec.com/2024/07/02/cspt2csrf.html
34.11.1
Affected by 1 other vulnerability.
VCID-9747-ab3e-4bbg
Aliases:
CVE-2023-29529
GHSA-6g67-q39g-r79q
Missing Authorization matrix-js-sdk is the Matrix Client-Server SDK for JavaScript and TypeScript. An attacker present in a room where an MSC3401 group call is taking place can eavesdrop on the video and audio of participants using matrix-js-sdk, without their knowledge. To affected matrix-js-sdk users, the attacker will not appear to be participating in the call. This attack is possible because matrix-js-sdk's group call implementation accepts incoming direct calls from other users, even if they have not yet declared intent to participate in the group call, as a means of resolving a race condition in call setup. Affected versions do not restrict access to the user's outbound media in this case. Legacy 1:1 calls are unaffected. This is fixed in matrix-js-sdk 24.1.0. As a workaround, users may hold group calls in private rooms where only the exact users who are expected to participate in the call are present.
24.1.0
Affected by 4 other vulnerabilities.
VCID-9uwh-r958-gyg3
Aliases:
CVE-2024-42369
GHSA-vhr5-g3pm-49fm
matrix-js-sdk will freeze when a user sets a room with itself as a its predecessor ### Impact A malicious homeserver can craft a room or room structure such that the predecessors form a cycle. The matrix-js-sdk's `getRoomUpgradeHistory` function will infinitely recurse in this case, causing the code to hang. This method is public but also called by the 'leaveRoomChain()' method, so leaving a room will also trigger the bug. Even if the CVSS score would be 4.1 ([AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L&version=3.1)) we classify this as High severity issue. ### Patches This was patched in matrix-js-sdk 34.3.1. ### Workarounds Sanity check rooms before passing them to the matrix-js-sdk or avoid calling either `getRoomUpgradeHistory` or `leaveRoomChain`. ### References N/A.
34.3.1
Affected by 3 other vulnerabilities.
VCID-cw2e-p5x2-j7fu
Aliases:
CVE-2022-36059
GHSA-rfv9-x7hh-xc32
Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') 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.
19.4.0
Affected by 10 other vulnerabilities.
VCID-f4t7-jun7-3qh4
Aliases:
CVE-2022-39250
GHSA-5w8r-8pgj-5jmf
Multiple vulnerabilities have been found in Mozilla Thunderbird, the worst of which could result in arbitrary code execution.
19.7.0
Affected by 6 other vulnerabilities.
VCID-fs3v-8fsn-uygj
Aliases:
CVE-2023-28427
GHSA-mwq8-fjpf-c2gr
Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. In versions prior to 24.0.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 vulnerability is distinct from GHSA-rfv9-x7hh-xc32 which covers a similar issue. The issue has been patched in matrix-js-sdk 24.0.0 and users are advised to upgrade. There are no known workarounds for this vulnerability.
24.0.0
Affected by 5 other vulnerabilities.
VCID-qxh6-26ps-ykhu
Aliases:
CVE-2022-39249
GHSA-6263-x97c-c4gg
Multiple vulnerabilities have been found in Mozilla Thunderbird, the worst of which could result in arbitrary code execution.
19.7.0
Affected by 6 other vulnerabilities.
VCID-r824-dgt3-wucc
Aliases:
CVE-2022-39251
GHSA-r48r-j8fx-mq2c
Multiple vulnerabilities have been found in Mozilla Thunderbird, the worst of which could result in arbitrary code execution.
19.7.0
Affected by 6 other vulnerabilities.
VCID-tj5a-r7hy-zfer
Aliases:
CVE-2025-59160
GHSA-mp7c-m3rh-r56v
matrix-js-sdk has insufficient validation when considering a room to be upgraded by another matrix-js-sdk before 38.2.0 has insufficient validation of room predecessor links in `MatrixClient::getJoinedRooms`, allowing a remote attacker to attempt to replace a tombstoned room with an unrelated attacker-supplied room.
38.2.0
Affected by 0 other vulnerabilities.
VCID-xewe-wx57-3yfd
Aliases:
CVE-2021-40823
GHSA-23cm-x6j7-6hq3
Use of a Broken or Risky Cryptographic Algorithm There is a logic error in the room key sharing functionality of matrix-js-sdk (aka Matrix Javascript SDK). This allows the homeserver to decrypt end-to-end encrypted messages sent by affected clients.
12.4.1
Affected by 11 other vulnerabilities.
12.5.0-rc.1
Affected by 11 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-16T23:42:55.517510+00:00 GitLab Importer Affected by VCID-tj5a-r7hy-zfer https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2025-59160.yml 38.4.0
2026-04-16T23:14:10.803194+00:00 GitLab Importer Affected by VCID-6szy-r2cd-9kfw https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-50336.yml 38.4.0
2026-04-16T23:06:21.305023+00:00 GitLab Importer Affected by VCID-9uwh-r958-gyg3 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-42369.yml 38.4.0
2026-04-16T22:26:54.106209+00:00 GitLab Importer Affected by VCID-9747-ab3e-4bbg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2023-29529.yml 38.4.0
2026-04-16T22:25:40.357279+00:00 GitLab Importer Affected by VCID-cw2e-p5x2-j7fu https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2022-36059.yml 38.4.0
2026-04-16T22:25:38.712807+00:00 GitLab Importer Affected by VCID-fs3v-8fsn-uygj https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2023-28427.yml 38.4.0
2026-04-16T22:11:38.496305+00:00 GitLab Importer Affected by VCID-f4t7-jun7-3qh4 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2022-39250.yml 38.4.0
2026-04-16T22:11:26.702404+00:00 GitLab Importer Affected by VCID-r824-dgt3-wucc https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2022-39251.yml 38.4.0
2026-04-16T22:11:22.928501+00:00 GitLab Importer Affected by VCID-qxh6-26ps-ykhu https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2022-39249.yml 38.4.0
2026-04-16T21:31:00.815314+00:00 GitLab Importer Affected by VCID-xewe-wx57-3yfd https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2021-40823.yml 38.4.0
2026-04-12T01:03:49.295269+00:00 GitLab Importer Affected by VCID-tj5a-r7hy-zfer https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2025-59160.yml 38.3.0
2026-04-12T00:32:44.006738+00:00 GitLab Importer Affected by VCID-6szy-r2cd-9kfw https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-50336.yml 38.3.0
2026-04-12T00:24:21.675544+00:00 GitLab Importer Affected by VCID-9uwh-r958-gyg3 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-42369.yml 38.3.0
2026-04-11T23:45:13.071627+00:00 GitLab Importer Affected by VCID-9747-ab3e-4bbg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2023-29529.yml 38.3.0
2026-04-11T23:43:54.394575+00:00 GitLab Importer Affected by VCID-cw2e-p5x2-j7fu https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2022-36059.yml 38.3.0
2026-04-11T23:43:52.231600+00:00 GitLab Importer Affected by VCID-fs3v-8fsn-uygj https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2023-28427.yml 38.3.0
2026-04-11T23:28:24.790011+00:00 GitLab Importer Affected by VCID-f4t7-jun7-3qh4 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2022-39250.yml 38.3.0
2026-04-11T23:28:12.146589+00:00 GitLab Importer Affected by VCID-r824-dgt3-wucc https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2022-39251.yml 38.3.0
2026-04-11T23:28:08.271389+00:00 GitLab Importer Affected by VCID-qxh6-26ps-ykhu https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2022-39249.yml 38.3.0
2026-04-11T22:44:09.156354+00:00 GitLab Importer Affected by VCID-xewe-wx57-3yfd https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2021-40823.yml 38.3.0
2026-04-03T01:12:08.745100+00:00 GitLab Importer Affected by VCID-tj5a-r7hy-zfer https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2025-59160.yml 38.1.0
2026-04-03T00:40:26.319763+00:00 GitLab Importer Affected by VCID-6szy-r2cd-9kfw https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-50336.yml 38.1.0
2026-04-03T00:31:57.040973+00:00 GitLab Importer Affected by VCID-9uwh-r958-gyg3 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-42369.yml 38.1.0
2026-04-02T23:48:52.228364+00:00 GitLab Importer Affected by VCID-9747-ab3e-4bbg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2023-29529.yml 38.1.0
2026-04-02T23:47:35.307621+00:00 GitLab Importer Affected by VCID-cw2e-p5x2-j7fu https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2022-36059.yml 38.1.0
2026-04-02T23:47:33.480214+00:00 GitLab Importer Affected by VCID-fs3v-8fsn-uygj https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2023-28427.yml 38.1.0
2026-04-02T23:34:11.321951+00:00 GitLab Importer Affected by VCID-f4t7-jun7-3qh4 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2022-39250.yml 38.1.0
2026-04-02T23:34:00.748542+00:00 GitLab Importer Affected by VCID-r824-dgt3-wucc https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2022-39251.yml 38.1.0
2026-04-02T23:33:57.282094+00:00 GitLab Importer Affected by VCID-qxh6-26ps-ykhu https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2022-39249.yml 38.1.0
2026-04-02T22:54:12.778543+00:00 GitLab Importer Affected by VCID-xewe-wx57-3yfd https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2021-40823.yml 38.1.0
2026-04-01T18:12:11.632352+00:00 GitLab Importer Affected by VCID-9747-ab3e-4bbg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2023-29529.yml 38.0.0
2026-04-01T18:10:52.865233+00:00 GitLab Importer Affected by VCID-cw2e-p5x2-j7fu https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2022-36059.yml 38.0.0
2026-04-01T18:10:51.077920+00:00 GitLab Importer Affected by VCID-fs3v-8fsn-uygj https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2023-28427.yml 38.0.0
2026-04-01T17:56:09.865790+00:00 GitLab Importer Affected by VCID-f4t7-jun7-3qh4 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2022-39250.yml 38.0.0
2026-04-01T17:55:57.837391+00:00 GitLab Importer Affected by VCID-r824-dgt3-wucc https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2022-39251.yml 38.0.0
2026-04-01T17:55:53.949223+00:00 GitLab Importer Affected by VCID-qxh6-26ps-ykhu https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2022-39249.yml 38.0.0
2026-04-01T17:12:27.964039+00:00 GitLab Importer Affected by VCID-xewe-wx57-3yfd https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2021-40823.yml 38.0.0