All vulnerabilities

Servers and applications

GHSA-5wmj-5x79-rr87

Stored cross-site scripting (XSS) in the media and link input widgets

Severity
Medium 5.1
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)Improper output encoding (CWE-116)
Attack
Over the network · Needs a user account · Needs someone to view a page or file
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Sources
Project advisories (GitHub)

Description

The media, medialist, link and linklist input widgets render their stored value unescaped into the value attribute of their form fields. A user who can edit content can store a value that breaks out of the attribute and injects arbitrary HTML. The payload executes in the browser of every user who subsequently opens a form containing that widget — typically an administrator opening the article in the slice editor.

rex_var_media::getWidget() and its counterparts build their HTML by string concatenation and interpolate the value without applying rex_escape():

  • redaxo/src/addons/mediapool/lib/var_media.php:93 — text input
  • redaxo/src/addons/mediapool/lib/var_medialist.php:71 — option value and option text
  • redaxo/src/addons/mediapool/lib/var_medialist.php:91 — hidden input
  • redaxo/src/addons/structure/lib/linkmap/var_link.php:80 — hidden input
  • redaxo/src/addons/structure/lib/linkmap/var_linklist.php:64 — option value
  • redaxo/src/addons/structure/lib/linkmap/var_linklist.php:83 —…
From redaxo/core's security advisory. Shortened; the full text is there.

Workarounds

There is no configuration-level workaround. Until the update can be applied, limit content and metadata editing permissions to trusted users.

Workarounds as given by redaxo/core's security advisory.

Affected software

SoftwareAffected versions
REDAXOServers and applications · github:redaxo/core
  • Every version 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