All vulnerabilities

Servers and applications

GHSA-2p3g-jr7p-qwwx

Mediapool: unsanitized SVG uploads are publicly reachable, enabling stored XSS

Severity
Medium 4.4
Published
3 Aug 2026
Last changed
3 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
5.21.4
Weakness
Cross-site scripting (CWE-79)Time-of-check time-of-use race condition (CWE-367)Unrestricted file upload (CWE-434)
Attack
Over the network · Only under certain conditions · Needs a user account · Needs someone to click or open something
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
Sources
Project advisories (GitHub)

Description

The mediapool moves uploaded files into the public media folder before running the SVG sanitizer. An uploaded SVG is therefore served from its public URL with its original, unsanitized content until sanitization has finished , and permanently if sanitization never finishes.

Stored cross-site scripting. An authenticated backend user with mediapool upload or edit permissions , not necessarily an administrator , can upload an SVG containing . If another user opens the raw file URL as a top-level navigation (or it is loaded in an iframe) while the unsanitized content is still in place, the script executes in the origin serving /media/`. On typical single-domain installations that origin also serves the REDAXO backend, so the script runs with the victim's backend session.

Both upload paths in rex_media_service (redaxo/src/addons/mediapool/lib/service_media.php) follow the same order:

From redaxo/core's security advisory. Shortened; the full text is there.

Workarounds

If you cannot update immediately, pick whichever fits your installation:

  • Restrict permissions. The issue requires an authenticated backend account with mediapool upload or edit rights. Limit those rights to trusted users.
  • Block SVG uploads by adding the extension to the mediapool's blocklist, e.g. in the boot.php of your project addon:
  • Prevent script execution for delivered SVGs at the web server level. For Apache, in the .htaccess of your media folder:
Workarounds as given by redaxo/core's security advisory.

Affected software

SoftwareAffected versions
REDAXOServers and applications · github:redaxo/core
  • From 5.18.0 before 5.21.4

About REDAXO

Content management system

From Wikidata, CC0 1.0.
GitHub stars
356GitHub, 15 Nov 2026
Forks
115GitHub, 15 Nov 2026
Latest release
5.21.6GitHub, 15 Nov 2026
Released
25 Oct 2026GitHub
License
MIT LicenseWikidata
Written in
PHPWikidata
First published on GitHub
4 Jul 2010GitHub

References