npmWorst: High12 advisories
matrix-js-sdk: known vulnerabilities
matrix-js-sdk has 12 reviewed security advisories in the GitHub Advisory Database — 6 high, 6 moderate. The most recent was published 2025-09-16. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the matrix-js-sdk versions running across your servers, containers and images, and ranks what to patch first.
How to fix matrix-js-sdk
Upgrade matrix-js-sdk to a release at or above the fixed version shown for each advisory below. For npm:
npm install matrix-js-sdk@38.2.0 (or run npm audit fix)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (12)
matrix-js-sdk has insufficient validation when considering a room to be upgraded by another
Moderate CWE-20 CWE-345 CWE-862
— Affected: before 38.2.0. Fixed in 38.2.0. Published 2025-09-16. GHSA-mp7c-m3rh-r56v · CVE-2025-59160
matrix-js-sdk has insufficient MXC URI validation which allows client-side path traversal
Moderate CWE-22
— Affected: before 34.11.1. Fixed in 34.11.1. Published 2024-11-12. GHSA-xvg8-m4x3-w6xr · CVE-2024-50336
Matrix JavaScript SDK's key history sharing could share keys to malicious devices
High CWE-200 CWE-287
— Affected: from 9.11.0 up to 34.8.0. Fixed in 34.8.0. Published 2024-10-15. GHSA-4jf8-g8wp-cx7c · CVE-2024-47080
matrix-js-sdk will freeze when a user sets a room with itself as a its predecessor
Moderate 4.1 CWE-674
— Affected: before 34.3.1. Fixed in 34.3.1. Published 2024-08-20. GHSA-vhr5-g3pm-49fm · CVE-2024-42369
matrix-js-sdk vulnerable to invisible eavesdropping in group calls
Moderate 5.0 CWE-862
— Affected: before 24.1.0. Fixed in 24.1.0. Published 2023-04-14. GHSA-6g67-q39g-r79q · CVE-2023-29529
Prototype pollution in matrix-js-sdk (part 2)
High 8.2 CWE-1321
— Affected: before 24.0.0. Fixed in 24.0.0. Published 2023-03-28. GHSA-mwq8-fjpf-c2gr · CVE-2023-28427
matrix-js-sdk Prototype Pollution vulnerability
High 7.2 CWE-1321
— Affected: before 19.4.0. Fixed in 19.4.0. Published 2023-03-28. GHSA-rfv9-x7hh-xc32 · CVE-2022-36059
matrix-js-sdk subject to user impersonation due to key/device identifier confusion in SAS verification
High 8.6 CWE-287 CWE-322
— Affected: before 19.7.0. Fixed in 19.7.0. Published 2022-09-29. GHSA-5w8r-8pgj-5jmf · CVE-2022-39250
matrix-js-sdk subject to impersonated messages due to permissive key forwarding
High 7.5 CWE-287
— Affected: before 19.7.0. Fixed in 19.7.0. Published 2022-09-28. GHSA-6263-x97c-c4gg · CVE-2022-39249
Improper beacon events in matrix-js-sdk can result in availability issues
Moderate 4.3 CWE-20
— Affected: from 17.1.0-rc.1 up to 19.7.0. Fixed in 19.7.0. Published 2022-09-28. GHSA-hvv8-5v86-r45x · CVE-2022-39236
matrix-js-sdk subject to user spoofing via Olm/Megolm protocol confusion
High 8.6 CWE-287 CWE-322
— Affected: before 19.7.0. Fixed in 19.7.0. Published 2022-09-28. GHSA-r48r-j8fx-mq2c · CVE-2022-39251
matrix-js-sdk can be tricked into disclosing E2EE room keys to a participating homeserver
Moderate 5.9 CWE-200 CWE-327
— Affected: before 12.4.1. Fixed in 12.4.1. Published 2021-09-13. GHSA-23cm-x6j7-6hq3 · CVE-2021-40823
Find matrix-js-sdk across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.