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:
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:
Affected software
| Software | Affected versions |
|---|---|
REDAXOServers and applications · github:redaxo/core |
|
About REDAXO
Content management system
- 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
Vulnerabilities in REDAXO
- In our list
- 64
- Published in the last 12 months
- 42
- Critical, last 12 months
- 2
- High, last 12 months
- 13
- Known exploited
- 0
- CVE-2026-126318REDAXO before 5.21.6 Authorization Bypass of Live Version PermissionMedium 5.3 13 Nov 2026
- CVE-2026-117538REDAXO before 5.21.0 Reflected XSS via Packages API function ParameterLow 2.1 27 Oct 2026
- CVE-2026-117537REDAXO before 5.21.0 Reflected XSS via Metainfo API type ParameterLow 2.1 27 Oct 2026
- CVE-2026-117536REDAXO before 5.21.3 CSRF Token Bypass via users/users Privilege EscalationHigh 8.6 27 Oct 2026
- CVE-2026-117535REDAXO before 5.21.3 Reflected XSS via opener_link in Media PoolMedium 5.1 27 Oct 2026
- CVE-2026-117534REDAXO before 5.21.3 CSRF in Article History PluginMedium 5.1 27 Oct 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-2p3g-jr7p-qwwx
- github.com https://github.com/redaxo/core/security/advisories/GHSA-2p3g-jr7p-qwwx