matrix-media-repo (MMR) allows unauthenticated writes to the media repository, which may allow planting of problematic contentGHSA-8vmr-h7h5-cqhg
MEDIUMFix: matrix-org/matrix-spec-proposals#3916GHSA-8vmr-h7h5-cqhg is a medium-severity (CVSS 5.3) Improper Authentication vulnerability in github.com/t2bot/matrix-media-repo. A fix is available for github.com/t2bot/matrix-media-repo — see the affected versions and patch details below.
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
Exploitation and automatability from CISA’s SSVC triage for GHSA-8vmr-h7h5-cqhg.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
github.com/t2bot/matrix-media-repoReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
Impact
MMR before version 1.3.5 allows, by design, unauthenticated remote participants to trigger a download and caching of remote media from a remote homeserver to the local media repository. Such content then also becomes available for download from the local homeserver in an unauthenticated way. The implication is that unauthenticated remote adversaries can use this functionality to plant problematic content into the media repository.
Patches
MMR 1.3.5 introduces a partial mitigation in the form of new endpoints which require authentication for media downloads. The unauthenticated endpoints will be frozen in a future release, closing the attack vector.
Workarounds
Though extremely limited, server operators can use more strict rate limits based on IP address.
References
https://github.com/matrix-org/matrix-spec-proposals/pull/3916
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/t2bot/matrix-media-repo | all versions | 1.3.5go get github.com/t2bot/matrix-media-repo@v1.3.5 |
Affected Products
matrix-media-repot2botDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/t2bot/matrix-media-repo, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/t2bot/matrix-media-repo to 1.3.5 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-8vmr-h7h5-cqhg is resolved across your whole dependency graph.
Workarounds
Put an independent control in front of the weakness: restrict the affected endpoint or interface to trusted networks, require an additional authentication factor or proxy-level check, and invalidate existing sessions and credentials in case the flaw has already been used.
Frequently Asked Questions
Is GHSA-8vmr-h7h5-cqhg in your dependencies?
Find it across Go, including transitive dependencies.