# matrix-js-sdk (npm) vulnerabilities

12 known vulnerabilities (6 high, 4 medium, 1 low), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: not known (cve.now hasn't read this package's releases)
- Newest unaffected release: not known without release data
- Registry: https://www.npmjs.com/package/matrix-js-sdk

## Advisories (12)

### [CVE-2025-59160](https://cve.now/CVE-2025-59160): matrix-js-sdk has insufficient validation when considering a room to be upgraded by another

- Severity: Low 2.7
- Published: Sep 16, 2025
- Affected: fixed in 38.2.0.

### [CVE-2024-50336](https://cve.now/CVE-2024-50336): matrix-js-sdk has insufficient MXC URI validation which allows client-side path traversal

- Severity: Medium 5.3
- Published: Nov 12, 2024
- Affected: fixed in 34.11.1.

### [CVE-2024-47080](https://cve.now/CVE-2024-47080): matrix-js-sdk keys sent via \`sendSharedHistoryKeys\` vulnerable to interception by malicious homeserver

- Severity: High 8.7
- Published: Oct 15, 2024
- Affected: from 9.11.0, fixed in 34.8.0.

### [CVE-2024-42369](https://cve.now/CVE-2024-42369): A room with itself as a its predecessor will freeze matrix-js-sdk

- Severity: Medium 4.1
- Published: Aug 20, 2024
- Affected: fixed in 34.3.1.

### [CVE-2023-29529](https://cve.now/CVE-2023-29529): matrix-js-sdk vulnerable to invisible eavesdropping in group calls

- Severity: Medium 5.0
- Published: Apr 14, 2023
- Affected: fixed in 24.1.0.

### [CVE-2023-28427](https://cve.now/CVE-2023-28427): Prototype pollution in matrix-js-sdk

- Severity: High 8.2
- Published: Mar 28, 2023
- Affected: fixed in 24.0.0.

### [CVE-2022-36059](https://cve.now/CVE-2022-36059): Prototype pollution in matrix-js-sdk

- Severity: High 8.2
- Published: Mar 28, 2023
- Affected: fixed in 19.4.0.

### [CVE-2022-39250](https://cve.now/CVE-2022-39250): Matrix JavaScript SDK vulnerable to key/device identifier confusion in SAS verification

- Severity: High 8.6
- Published: Sep 29, 2022
- Affected: fixed in 19.7.0.

### [CVE-2022-39251](https://cve.now/CVE-2022-39251): Matrix Javascript SDK vulnerable to Olm/Megolm protocol confusion

- Severity: High 8.6
- Published: Sep 28, 2022
- Affected: fixed in 19.7.0.

### [CVE-2022-39249](https://cve.now/CVE-2022-39249): Matrix Javascript SDK vulnerable to impersonation via forwarded Megolm sessions

- Severity: High 7.5
- Published: Sep 28, 2022
- Affected: fixed in 19.7.0.

### [CVE-2022-39236](https://cve.now/CVE-2022-39236): Matrix Javascript SDK improper beacon events can cause availability issues

- Severity: Medium 4.3
- Published: Sep 28, 2022
- Affected: from 17.1.0-rc.1, fixed in 19.7.0.

### [CVE-2021-40823](https://cve.now/CVE-2021-40823): A logic error in the room key sharing functionality of matrix-js-sdk (aka Matrix Javascript SDK) before 12.4.1 allows a malicious Matrix…

- Severity: Unrated
- Published: Sep 13, 2021
- Affected: fixed in 12.4.1.

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/npm/matrix-js-sdk
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
