Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/matrix-react-sdk@3.21.0
purl pkg:npm/matrix-react-sdk@3.21.0
Next non-vulnerable version 3.105.1
Latest non-vulnerable version 3.105.1
Risk 4.0
Vulnerabilities affecting this package (5)
Vulnerability Summary Fixed by
VCID-1g1f-1x88-tbg5
Aliases:
CVE-2023-30609
GHSA-xv83-x443-7rmw
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') matrix-react-sdk is a react-based SDK for inserting a Matrix chat/VoIP client into a web page. Prior to version 3.71.0, plain text messages containing HTML tags are rendered as HTML in the search results. To exploit this, an attacker needs to trick a user into searching for a specific message containing an HTML injection payload. No cross-site scripting attack is possible due to the hardcoded content security policy. Version 3.71.0 of the SDK patches over the issue. As a workaround, restarting the client will clear the HTML injection.
3.71.0
Affected by 3 other vulnerabilities.
VCID-3s7z-6bqr-rqd1
Aliases:
CVE-2023-28103
GHSA-6g43-88cp-w5gv
Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') matrix-react-sdk is a Matrix chat protocol SDK for React Javascript. In certain configurations, data sent by remote servers containing special strings in key locations could cause modifications of the `Object.prototype`, disrupting matrix-react-sdk functionality, causing denial of service and potentially affecting program logic. This is fixed in matrix-react-sdk 3.69.0 and users are advised to upgrade. There are no known workarounds for this vulnerability. Note this advisory is distinct from GHSA-2x9c-qwgf-94xr which refers to a similar issue.
3.69.0
Affected by 4 other vulnerabilities.
VCID-e42f-h16f-gkbf
Aliases:
CVE-2024-47824
GHSA-qcvh-p9jq-wp8v
Malicious homeservers can steal message keys when the matrix-react-sdk user invites another user to a room ### Impact matrix-react-sdk before 3.102.0 allows a malicious homeserver to potentially steal message keys for a room when a user invites another user to that room, via injection of a malicious device controlled by the homeserver. This is possible because matrix-react-sdk before 3.102.0 shared historical message keys on invite. ### Patches matrix-react-sdk 3.102.0 [disables sharing message keys on invite](https://github.com/matrix-org/matrix-react-sdk/pull/12618) by removing calls to the vulnerable functionality. ### Workarounds None. ### References The vulnerability in matrix-react-sdk is caused by calling `MatrixClient.sendSharedHistoryKeys` in matrix-js-sdk, which is inherently vulnerable to this sort of attack. This matrix-js-sdk vulnerability is tracked as CVE-2024-47080 / [GHSA-4jf8-g8wp-cx7c](https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-4jf8-g8wp-cx7c). Given that this functionality is not specific to sharing message keys on *invite*, is optional, has to be explicitly called by the caller and has been independently patched in matrix-react-sdk by removing the offending calls, we believe it is proper to treat the matrix-react-sdk vulnerability as a separate one, with its own advisory and CVE. The matrix-org/matrix-react-sdk repository has recently been archived and the project was moved to [element-hq/matrix-react-sdk](https://github.com/element-hq/matrix-react-sdk). Given that this happened *after* the first patched release, no releases of the project on [element-hq/matrix-react-sdk](https://github.com/element-hq/matrix-react-sdk) were ever vulnerable to this vulnerability. Patching pull request: https://github.com/matrix-org/matrix-react-sdk/pull/12618. ### For more information If you have any questions or comments about this advisory, please email us at security at [security at matrix.org](mailto:security@matrix.org).
3.102.0
Affected by 1 other vulnerability.
VCID-k3ft-j7d1-nkh7
Aliases:
CVE-2024-42347
GHSA-f83w-wqhc-cfp4
Matrix SDK for React's URL preview setting for a room is controllable by the homeserver ### Impact A malicious homeserver could manipulate a user's account data to cause the client to enable URL previews in end-to-end encrypted rooms, in which case any URLs in encrypted messages would be sent to the server. Even if the CVSS score would be 4.1 ([AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N](https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N&version=3.1)) the maintainer classifies this as High severity issue. ### Patches This was patched in matrix-react-sdk 3.105.1. ### Workarounds Deployments that trust their homeservers, as well as closed federations of trusted servers, are not affected. ### References N/A.
3.105.1
Affected by 0 other vulnerabilities.
VCID-ybpz-t956-k7fb
Aliases:
CVE-2022-36060
GHSA-2x9c-qwgf-94xr
Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') matrix-react-sdk is a Matrix chat protocol SDK for React Javascript. Events sent with special strings in key places can temporarily disrupt or impede the matrix-react-sdk from functioning properly, such as by causing room or event tile crashes. The remainder of the application can appear functional, though certain rooms/events will not be rendered. This issue has been fixed in matrix-react-sdk 3.53.0 and users are advised to upgrade. There are no known workarounds for this vulnerability.
3.53.0
Affected by 5 other vulnerabilities.
Vulnerabilities fixed by this package (2)
Vulnerability Summary Aliases
VCID-g663-4qpc-m3gp Improper file handling in matrix-react-sdk Matrix-React-SDK is a react-based SDK for inserting a Matrix chat/voip client into a web page. Before version 3.21.0, when uploading a file, the local file preview can lead to execution of scripts embedded in the uploaded file. This can only occur after several user interactions to open the preview in a separate tab. This only impacts the local user while in the process of uploading. It cannot be exploited remotely or by other users. This vulnerability is patched in version 3.21.0. CVE-2021-32622
GHSA-cg57-p69r-3m7p
VCID-s9bd-8czt-fbcg File upload local preview can run embedded scripts after user interaction ### Impact When uploading a file, the local file preview can lead to execution of scripts embedded in the uploaded file, but only after several user interactions to open the preview in a separate tab. This only impacts the local user while in the process of uploading. It cannot be exploited remotely or by other users. ### Patches This has been fixed by https://github.com/matrix-org/matrix-react-sdk/pull/5981, which is included in 3.21.0. ### Workarounds There are no known workarounds. GHSA-8796-gc9j-63rv

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-16T23:11:50.424027+00:00 GitLab Importer Affected by VCID-e42f-h16f-gkbf https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2024-47824.yml 38.4.0
2026-04-16T23:05:35.223393+00:00 GitLab Importer Affected by VCID-k3ft-j7d1-nkh7 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2024-42347.yml 38.4.0
2026-04-16T22:27:51.425501+00:00 GitLab Importer Affected by VCID-1g1f-1x88-tbg5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2023-30609.yml 38.4.0
2026-04-16T22:25:42.264223+00:00 GitLab Importer Affected by VCID-3s7z-6bqr-rqd1 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2023-28103.yml 38.4.0
2026-04-16T22:25:37.324482+00:00 GitLab Importer Affected by VCID-ybpz-t956-k7fb https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2022-36060.yml 38.4.0
2026-04-12T00:30:15.814261+00:00 GitLab Importer Affected by VCID-e42f-h16f-gkbf https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2024-47824.yml 38.3.0
2026-04-12T00:23:33.093767+00:00 GitLab Importer Affected by VCID-k3ft-j7d1-nkh7 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2024-42347.yml 38.3.0
2026-04-11T23:46:15.149591+00:00 GitLab Importer Affected by VCID-1g1f-1x88-tbg5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2023-30609.yml 38.3.0
2026-04-11T23:43:56.548496+00:00 GitLab Importer Affected by VCID-3s7z-6bqr-rqd1 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2023-28103.yml 38.3.0
2026-04-11T23:43:50.300229+00:00 GitLab Importer Affected by VCID-ybpz-t956-k7fb https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2022-36060.yml 38.3.0
2026-04-03T00:37:55.504992+00:00 GitLab Importer Affected by VCID-e42f-h16f-gkbf https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2024-47824.yml 38.1.0
2026-04-03T00:31:10.930225+00:00 GitLab Importer Affected by VCID-k3ft-j7d1-nkh7 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2024-42347.yml 38.1.0
2026-04-02T23:49:48.562661+00:00 GitLab Importer Affected by VCID-1g1f-1x88-tbg5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2023-30609.yml 38.1.0
2026-04-02T23:47:37.183351+00:00 GitLab Importer Affected by VCID-3s7z-6bqr-rqd1 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2023-28103.yml 38.1.0
2026-04-02T23:47:32.137534+00:00 GitLab Importer Affected by VCID-ybpz-t956-k7fb https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2022-36060.yml 38.1.0
2026-04-02T16:56:41.555578+00:00 GHSA Importer Fixing VCID-s9bd-8czt-fbcg https://github.com/advisories/GHSA-8796-gc9j-63rv 38.1.0
2026-04-01T18:13:16.349714+00:00 GitLab Importer Affected by VCID-1g1f-1x88-tbg5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2023-30609.yml 38.0.0
2026-04-01T18:10:54.970059+00:00 GitLab Importer Affected by VCID-3s7z-6bqr-rqd1 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2023-28103.yml 38.0.0
2026-04-01T18:10:49.517480+00:00 GitLab Importer Affected by VCID-ybpz-t956-k7fb https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/matrix-react-sdk/CVE-2022-36060.yml 38.0.0
2026-04-01T15:59:52.803232+00:00 GHSA Importer Fixing VCID-g663-4qpc-m3gp https://github.com/advisories/GHSA-cg57-p69r-3m7p 38.0.0
2026-04-01T13:06:36.785616+00:00 GithubOSV Importer Fixing VCID-g663-4qpc-m3gp https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-cg57-p69r-3m7p/GHSA-cg57-p69r-3m7p.json 38.0.0
2026-04-01T13:02:52.747507+00:00 GithubOSV Importer Fixing VCID-s9bd-8czt-fbcg https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-8796-gc9j-63rv/GHSA-8796-gc9j-63rv.json 38.0.0