CVE-2026-63002: REDAXO Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-w998-qmw9-mf4m
CVSS 4.8
CWE-79
Published
Advisory Summary

CVE-2026-63002 is a MODERATE (CVSS 4.8) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting REDAXO libraries in the Packagist ecosystem. The issue involves stored xss in mediapool sync page via unescaped filesystem filenames. Remediation is available by upgrading affected packages to version 5.21.2.

CVE-2026-63002 at a Glance

CVE Identifier CVE-2026-63002
GHSA Identifier GHSA-w998-qmw9-mf4m
Severity MODERATE
CVSS v3.1 Base Score 4.8
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product REDAXO
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-63002

To remediate this vulnerability, upgrade all affected REDAXO dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

redaxo/source fixed: 5.21.2
Upgrade redaxo/source to 5.21.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for redaxo/source

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-63002, inspect your project dependencies for REDAXO:

inspect dependencies for redaxo/source

Analyze the terminal output to locate any version of REDAXO in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.21.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In REDAXO, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary The mediapool sync page (`sync.php`) renders filenames from the `/media` filesystem directory directly into HTML without applying `rex_escape()` (i.e., `htmlspecialchars`). Any file placed in the media directory whose filename contains HTML metacharacters will execute JavaScript in the browser of any backend user who views the sync page. ### Details In `redaxo/src/addons/mediapool/pages/sync.php`, the variable `$diffFiles` is populated from actual filesystem filenames (files in `/media/` not yet registered in the database). These filenames are then rendered without escaping: **File:** `redaxo/src/addons/mediapool/pages/sync.php:119-120` ```php foreach ($diffFiles as $file) { if (is_writable(rex_path::media($file))) { $e = []; $e['label'] = '<label>' . $file . '</label>'; // NO rex_escape! $e['field'] = '<input type="checkbox" name="sync_files[]" value="' . $file . '" />'; // NO rex_escape! $writable[] = $e; } else { $notWritable[] = $file; } } ``` **File:** `redaxo/src/addons/mediapool/pages/sync.php:170` ```php $fragment->setVar('body', '<ul><li>' . implode('</li><li>', $notWritable) . '</li></ul>', false); // $notWritable contains unescaped filenames ``` By contrast, all other filename displays in the codebase use `rex_escape($fname)` (e.g., `media.detail.php:236`, `media.list.php`). The sync page is accessible to any backend user with the `media[sync]` permission (not exclusively admins). ### PoC 1. Place a file named `<img src=x onerror=alert(document.cookie)>.txt` into the REDAXO `/media/` directory (via backup restore or server access) without adding it to the media database. 2. Log in as any backend user with `media[sync]` permission. 3. Navigate to **Mediapool → Sync**. 4. The XSS payload executes immediately, stealing the admin session cookie. ### Impact Stored XSS in the admin panel. An attacker who can place files in the media directory (via admin-level backup restore or server access) can achieve persistent XSS against all users who visit the sync page, including higher-privileged admins. This enables session hijacking, credential theft, and full CMS takeover. ### Fix Apply `rex_escape()` to all filename variables before inserting into HTML: ```php $e['label'] = '<label>' . rex_escape($file) . '</label>'; $e['field'] = '<input type="checkbox" name="sync_files[]" value="' . rex_escape($file) . '" />'; // ... $fragment->setVar('body', '<ul><li>' . implode('</li><li>', array_map('rex_escape', $notWritable)) . '</li></ul>', false); ```

CVE-2026-63002 Affected REDAXO Versions

1 component(s)
Fixed Versions:
5.21.2
Product / Package Ecosystem Affected Versions Fixed Version
redaxo/source
Packagist
< 5.21.2
5.21.2

References

Frequently Asked Questions

What is CVE-2026-63002?
CVE-2026-63002 is a security vulnerability in REDAXO involving Stored XSS in Mediapool Sync Page via Unescaped Filesystem Filenames under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which REDAXO versions are affected?
Affected versions include releases prior to 5.21.2 across affected packages: redaxo/source.
What version fixes CVE-2026-63002?
Upgrading to 5.21.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is redaxo/source affected?
Yes, redaxo/source is affected in releases prior to 5.21.2. Upgrade your dependency to 5.21.2 or later.
What is the CVSS score of CVE-2026-63002?
CVE-2026-63002 has a CVSS v3.1 base score of 4.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2026-63002?
CVE-2026-63002 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for CVE-2026-63002?
Run the dependency tree command: 'inspect dependencies for redaxo/source'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-w998-qmw9-mf4m",
  "modified" : "2026-09-23T14:06:04Z",
  "published" : "2026-09-23T14:06:04Z",
  "aliases" : [ "CVE-2026-63002" ],
  "summary" : "REDAXO: Stored XSS in Mediapool Sync Page via Unescaped Filesystem Filenames",
  "details" : "### Summary\nThe mediapool sync page (`sync.php`) renders filenames from the `/media` filesystem directory directly into HTML without applying `rex_escape()` (i.e., `htmlspecialchars`). Any file placed in the media directory whose filename contains HTML metacharacters will execute JavaScript in the browser of any backend user who views the sync page.\n\n### Details\nIn `redaxo/src/addons/mediapool/pages/sync.php`, the variable `$diffFiles` is populated from actual filesystem filenames (files in `/media/` not yet registered in the database). These filenames are then rendered without escaping:\n\n**File:** `redaxo/src/addons/mediapool/pages/sync.php:119-120`\n```php\nforeach ($diffFiles as $file) {\n    if (is_writable(rex_path::media($file))) {\n        $e = [];\n        $e['label'] = '<label>' . $file . '</label>';          // NO rex_escape!\n        $e['field'] = '<input type=\"checkbox\" name=\"sync_files[]\" value=\"' . $file . '\" />'; // NO rex_escape!\n        $writable[] = $e;\n    } else {\n        $notWritable[] = $file;\n    }\n}\n```\n\n**File:** `redaxo/src/addons/mediapool/pages/sync.php:170`\n```php\n$fragment->setVar('body', '<ul><li>' . implode('</li><li>', $notWritable) . '</li></ul>', false);\n// $notWritable contains unescaped filenames\n```\n\nBy contrast, all other filename displays in the codebase use `rex_escape($fname)` (e.g., `media.detail.php:236`, `media.list.php`). The sync page is accessible to any backend user with the `media[sync]` permission (not exclusively admins).\n\n### PoC\n1. Place a file named `<img src=x onerror=alert(document.cookie)>.txt` into the REDAXO `/media/` directory (via backup restore or server access) without adding it to the media database.\n2. Log in as any backend user with `media[sync]` permission.\n3. Navigate to **Mediapool → Sync**.\n4. The XSS payload executes immediately, stealing the admin session cookie.\n\n### Impact\nStored XSS in the admin panel. An attacker who can place files in the media directory (via admin-level backup restore or server access) can achieve persistent XSS against all users who visit the sync page, including higher-privileged admins. This enables session hijacking, credential theft, and full CMS takeover.\n\n### Fix\nApply `rex_escape()` to all filename variables before inserting into HTML:\n```php\n$e['label'] = '<label>' . rex_escape($file) . '</label>';\n$e['field'] = '<input type=\"checkbox\" name=\"sync_files[]\" value=\"' . rex_escape($file) . '\" />';\n// ...\n$fragment->setVar('body', '<ul><li>' . implode('</li><li>', array_map('rex_escape', $notWritable)) . '</li></ul>', false);\n```",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "redaxo/source"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.21.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 5.21.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/redaxo/core/security/advisories/GHSA-w998-qmw9-mf4m"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/redaxo/core/pull/6581"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/redaxo/core/commit/2daaa3a30570bc76a82f63fd21fb8c9c2cd5dc7c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/redaxo/core"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/redaxo/core/releases/tag/5.21.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-23T14:06:04Z",
    "nvd_published_at" : null
  }
}