CVE-2023-41318Turt2live Matrix-media-repo
Medium 5.4
Follow: this CVE · Turt2live · Turt2live Matrix-media-repo We alert you by email or Slack (account required).
- Priority
- 32
- CVSS 3.1
- 5.4
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 44
- Auth required
- Yes
- Published
- Sep 8, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Matrix-media-repo.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/turt2live/matrix-media-repo |
< 1.3.0 |
1.3.0 |
go get github.com/turt2live/matrix-media-repo@v1.3.0 |
| Go | github.com/turt2live/matrix-media-repo |
< 1.3.0 |
1.3.0 |
go get github.com/turt2live/matrix-media-repo@v1.3.0 |
Per OSV / GitHub Advisories (GHSA-5crw-6j7v-xc72, GO-2023-2053). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| turt2live | matrix-media-repo | < 1.3.0 |
Official sources
References
Links published by the sources. Open them with care.
- developer.mozilla.org Third Party Advisory
- github.com Patch
- github.com Patch
- github.com Vendor Advisory