Vulnerability library
Security checkAugust 20, 2024

matrix-js-sdk will freeze when a user sets a room with itself as a its predecessor

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

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.

Recommendation

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

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

References

Could your website be exposed too?

SmartScanner can check your website for matrix-js-sdk will freeze when a user sets a room with itself as a its predecessor and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated August 20, 2024