Unsafe media served inline on download endpoints in matrix-media-repo
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
matrix-media-repo is a highly customizable multi-domain media repository for the Matrix chat ecosystem. In affected versions an attacker could upload a malicious piece of media to the media repo, which would then be served with `Content-Disposition: inline` upon download. This vulnerability could be leveraged to execute scripts embedded in SVG content. Commits `77ec235` and `bf8abdd` fix the issue and are included in the 1.3.0 release. Operators should upgrade to v1.3.0 as soon as possible. Operators unable to upgrade should override the `Content-Disposition` header returned by matrix-media-repo as a workaround.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| turt2live | matrix-media-repo | before 1.3.0 | 1.3.0 | Patch available | CNA |
| — | github.com/turt2live/matrix-media-repo (Go) | before 1.3.0 | 1.3.0 | Patch available | GHSA-5crw-6j7v-xc72 |
- matrix-media-repo Vendorturt2live Affected before 1.3.0 Fixed in 1.3.0 Patch available CNA
- github.com/turt2live/matrix-media-repo (Go) Vendor— Affected before 1.3.0 Fixed in 1.3.0 Patch available GHSA-5crw-6j7v-xc72
Remediation
- Fix · CNA matrix-media-repo (turt2live) Fixed in 1.3.0
- Fix · GHSA-5crw-6j7v-xc72 github.com/turt2live/matrix-media-repo (Go) Fixed in 1.3.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-41318
- 2026-10-03 Alias added: GHSA-5crw-6j7v-xc72
References
Patch 2
Advisory 3
Sources
- CVE-2023-41318 · CVE Program
- CVE-2023-41318 · NVD
- FIRST EPSS
- GHSA-5crw-6j7v-xc72 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences