RUSTSEC-2026-0588
Validating Matrix Content URIs may panic
UnscoredFix available
- CVSS
- —
- EPSS
- —
- Published
- 2026-11-19
- Age
- 15d old
- Modified
- 2026-11-22
- Product
- crates.io ruma-identifiers-validation
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.
Fixed in
0.13.0
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| crates.io | ruma-identifiers-validation | >=0.2.3, <0.13.0 | 0.13.0 |
Sources
- OSV · first seen 12d ago · CC-BY 4.0