Vulnerability library
Security checkSeptember 22, 2025

matrix-js-sdk has insufficient validation when considering a room to be upgraded by another

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmmatrix-js-sdk

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

Update the matrix-js-sdk package to the latest compatible version. Followings are version details:

  • Affected version(s): < 38.2.0
  • Patched version(s): 38.2.0

References

Could your website be exposed too?

SmartScanner can check your website for matrix-js-sdk has insufficient validation when considering a room to be upgraded by another and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 22, 2025