The ruma-identifiers-validation library contains a vulnerability where using the function mxc_uri::validate can cause a panic if the server name part of a Matrix Content URI exceeds 249 bytes. This occurs because the code assumes the server name length fits into a NonZeroU8 type, but the Matrix specification allows server names up to 261 bytes. This flaw was fixed in version 0.13.0.