# RUSTSEC-2026-0588: Validating Matrix Content URIs may panic

- Database: RustSec
- Published: 2026-11-19
- Modified: 2026-11-22

## Affected versions

- ruma-identifiers-validation (crates.io): from 0.2.3, fixed in 0.13.0

## Description

Using `mxc_uri::validate` may panic if the server name part of the URI is larger
than 249 bytes. The affected versions assumed that the length of the first part
of the URI (`mxc://{server_name}`) would fit into a `NonZeroU8`, but the length
of the server name wasn't validated and the Matrix specification actually allows
the server name to have a maximum length of 261 bytes.

## References

- https://crates.io/crates/ruma-identifiers-validation
- https://rustsec.org/advisories/RUSTSEC-2026-0588.html
- https://github.com/ruma/ruma/commit/caf1ac05a9fd347158b60505ef8546a2ff18ae7c

Page: https://cve.now/RUSTSEC-2026-0588

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
