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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-11-19T12:00:00.000Z
- Modified: 2026-11-22T09:45:02.675Z

## 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.

(As written by RustSec Advisory Database.)

## Affected

- ruma-identifiers-validation (crates.io): from 0.2.3 before 0.13.0

## References

- <https://crates.io/crates/ruma-identifiers-validation> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0588.html> (advisory)
- <https://github.com/ruma/ruma/commit/caf1ac05a9fd347158b60505ef8546a2ff18ae7c> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0588](https://rustsec.org/advisories/RUSTSEC-2026-0588.html), CC0-1.0, modified 2026-11-22

---

Page: https://cve.day/RUSTSEC-2026-0588 · Whole record: https://cve.day/RUSTSEC-2026-0588.json · Rebuilt by cve.day 2026-11-25T22:56:43.522Z
