{"cve":"CVE-2023-41318","nvd":{"published":"2023-09-08T20:15:14.693","modified":"2026-06-17T06:21:44.677","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4},"cwes":["CWE-79"],"references":["https://developer.mozilla.org/en-US/docs/Web/SVG/Element/script","https://github.com/turt2live/matrix-media-repo/commit/77ec2354e8f46d5ef149d1dcaf25f51c04149137","https://github.com/turt2live/matrix-media-repo/commit/bf8abdd7a5371118e280c65a8e0ec2b2e9bdaf59","https://github.com/turt2live/matrix-media-repo/security/advisories/GHSA-5crw-6j7v-xc72","https://developer.mozilla.org/en-US/docs/Web/SVG/Element/script"],"products":["turt2live:matrix-media-repo"],"source":"nvd","synced_at":"2026-10-19T21:39:24.235896374+00:00"},"epss":{"cve":"CVE-2023-41318","score":0.00516,"percentile":0.43981,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-5crw-6j7v-xc72","url":"https://osv.dev/vulnerability/GHSA-5crw-6j7v-xc72","summary":"matrix-media-repo: Unsafe media served inline on download endpoints","modified":"2026-09-10T03:49:57.874197523Z","packages":[{"ecosystem":"Go","name":"github.com/turt2live/matrix-media-repo","purl":"pkg:golang/github.com/turt2live/matrix-media-repo","ranges":["<1.3.0"],"fixed":["1.3.0"]}]},{"id":"GO-2023-2053","url":"https://osv.dev/vulnerability/GO-2023-2053","summary":"matrix-media-repo: Unsafe media served inline on download endpoints in github.com/turt2live/matrix-media-repo","modified":"2026-03-03T04:54:09.480216Z","packages":[{"ecosystem":"Go","name":"github.com/turt2live/matrix-media-repo","purl":"pkg:golang/github.com/turt2live/matrix-media-repo","ranges":["<1.3.0"],"fixed":["1.3.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}