{"id":"RUSTSEC-2026-0588","aliases":["RUSTSEC-2026-0588"],"related":[],"kind":"vulnerability","state":"published","title":"Validating Matrix Content URIs may panic","summary":"Using `mxc_uri::validate` may panic if the server name part of the URI is larger\nthan 249 bytes. The affected versions assumed that the length of the first part\nof the URI (`mxc://{server_name}`) would fit into a `NonZeroU8`, but the length\nof the server name wasn't validated and the Matrix specification actually allows\nthe server name to have a maximum length of 261 bytes.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"Using `mxc_uri::validate` may panic if the server name part of the URI is larger\nthan 249 bytes. The affected versions assumed that the length of the first part\nof the URI (`mxc://{server_name}`) would fit into a `NonZeroU8`, but the length\nof the server name wasn't validated and the Matrix specification actually allows\nthe server name to have a maximum length of 261 bytes.","format":"markdown","source":"rustsec"}],"published":"2026-11-19T12:00:00.000Z","modified":"2026-11-22T09:45:02.675Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.2.3","status":"affected","fixed":"0.13.0"}],"ecosystem":"crates.io","package":"ruma-identifiers-validation","purl":"pkg:cargo/ruma-identifiers-validation","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/ruma-identifiers-validation","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0588.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/ruma/ruma/commit/caf1ac05a9fd347158b60505ef8546a2ff18ae7c","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0588","url":"https://rustsec.org/advisories/RUSTSEC-2026-0588.html","licence":"CC0-1.0","modified":"2026-11-22T09:45:02.675Z"}],"updatedAt":"2026-11-25T22:56:43.522Z"}