Search for packages
Package details: pkg:npm/matrix-js-sdk@25.1.0-rc.1
purl pkg:npm/matrix-js-sdk@25.1.0-rc.1
Next non-vulnerable version 34.11.1
Latest non-vulnerable version 34.11.1
Risk 4.0
Vulnerabilities affecting this package (3)
Vulnerability Summary Fixed by
VCID-gutu-2p41-h7hg
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 0 other vulnerabilities.
VCID-xfrf-skay-4qf8
Aliases:
CVE-2024-42369
GHSA-vhr5-g3pm-49fm
matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. 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. This was patched in matrix-js-sdk 34.3.1.
34.3.1
Affected by 2 other vulnerabilities.
VCID-yt65-cbwm-qyg5
Aliases:
CVE-2024-47080
GHSA-4jf8-g8wp-cx7c
matrix-js-sdk is the Matrix Client-Server SDK for JavaScript and TypeScript. In matrix-js-sdk versions versions 9.11.0 through 34.7.0, the method `MatrixClient.sendSharedHistoryKeys` is vulnerable to interception by malicious homeservers. The method was introduced by MSC3061) and is commonly used to share historical message keys with newly invited users, granting them access to past messages in the room. However, it unconditionally sends these "shared" keys to all of the invited user's devices, regardless of whether the user's cryptographic identity is verified or whether the user's devices are signed by that identity. This allows the attacker to potentially inject its own devices to receive sensitive historical keys without proper security checks. Note that this only affects clients running the SDK with the legacy crypto stack. Clients using the new Rust cryptography stack (i.e. those that call `MatrixClient.initRustCrypto()` instead of `MatrixClient.initCrypto()`) are unaffected by this vulnerability, because `MatrixClient.sendSharedHistoryKeys()` raises an exception in such environments. The vulnerability was fixed in matrix-js-sdk 34.8.0 by removing the vulnerable functionality. As a workaround, remove use of affected functionality from clients.
34.8.0
Affected by 1 other vulnerability.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2025-06-20T17:11:58.316768+00:00 GitLab Importer Affected by VCID-gutu-2p41-h7hg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-50336.yml 36.1.3
2025-06-20T17:10:16.129025+00:00 GitLab Importer Affected by VCID-yt65-cbwm-qyg5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-47080.yml 36.1.3
2025-06-20T17:06:35.224219+00:00 GitLab Importer Affected by VCID-xfrf-skay-4qf8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-42369.yml 36.1.3
2025-06-03T23:47:43.772932+00:00 GitLab Importer Affected by VCID-gutu-2p41-h7hg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-50336.yml 36.1.0
2025-06-03T23:46:08.199469+00:00 GitLab Importer Affected by VCID-yt65-cbwm-qyg5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-47080.yml 36.1.0
2025-06-03T23:42:45.491927+00:00 GitLab Importer Affected by VCID-xfrf-skay-4qf8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-42369.yml 36.1.0
2025-06-02T23:46:20.409032+00:00 GitLab Importer Affected by VCID-gutu-2p41-h7hg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-50336.yml 36.1.2
2025-06-02T23:44:39.000364+00:00 GitLab Importer Affected by VCID-yt65-cbwm-qyg5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-47080.yml 36.1.2
2025-06-02T23:41:02.221089+00:00 GitLab Importer Affected by VCID-xfrf-skay-4qf8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-42369.yml 36.1.2
2025-04-03T22:32:35.173092+00:00 GitLab Importer Affected by VCID-gutu-2p41-h7hg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-50336.yml 36.0.0
2025-04-03T22:28:58.696609+00:00 GitLab Importer Affected by VCID-yt65-cbwm-qyg5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-47080.yml 36.0.0
2025-04-03T22:20:51.138100+00:00 GitLab Importer Affected by VCID-xfrf-skay-4qf8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-42369.yml 36.0.0
2025-02-18T04:12:54.947599+00:00 GitLab Importer Affected by VCID-gutu-2p41-h7hg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-50336.yml 35.1.0
2025-02-18T04:09:57.894019+00:00 GitLab Importer Affected by VCID-yt65-cbwm-qyg5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-47080.yml 35.1.0
2025-02-18T04:05:05.397469+00:00 GitLab Importer Affected by VCID-xfrf-skay-4qf8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-42369.yml 35.1.0
2024-11-21T01:17:08.086498+00:00 GitLab Importer Affected by VCID-yt65-cbwm-qyg5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-47080.yml 35.0.0
2024-11-21T01:13:32.427154+00:00 GitLab Importer Affected by VCID-xfrf-skay-4qf8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-42369.yml 35.0.0
2024-11-19T01:02:02.667746+00:00 GitLab Importer Affected by VCID-xfrf-skay-4qf8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-42369.yml 34.3.2
2024-10-17T02:08:39.855340+00:00 GHSA Importer Affected by VCID-yt65-cbwm-qyg5 https://github.com/advisories/GHSA-4jf8-g8wp-cx7c 34.0.2
2024-10-08T01:39:45.256506+00:00 GitLab Importer Affected by VCID-xfrf-skay-4qf8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-42369.yml 34.0.2
2024-10-07T22:20:02.388431+00:00 GHSA Importer Affected by VCID-xfrf-skay-4qf8 https://github.com/advisories/GHSA-vhr5-g3pm-49fm 34.0.2
2024-09-23T01:43:05.439633+00:00 GitLab Importer Affected by VCID-xfrf-skay-4qf8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-js-sdk/CVE-2024-42369.yml 34.0.1
2024-09-22T22:46:05.032835+00:00 GHSA Importer Affected by VCID-xfrf-skay-4qf8 https://github.com/advisories/GHSA-vhr5-g3pm-49fm 34.0.1