CVE-2024-47617: Injection of arbitrary HTML/JavaScript code through the media download URL
Impact This vulnerability allows an attacker to inject arbitrary HTML/JavaScript code through the media download URL in Sulu CMS. It affects the SuluMediaBundle component. The vulnerability is a Reflected Cross-Site Scripting (XSS) issue, which could potentially allow attackers to steal sensitive information, manipulate the website's content, or perform actions on behalf of the victim.
Published Oct 3, 2024 · Updated Oct 17, 2024
Affected packages
sulu/sulu
- Ecosystem
- Composer (PHP)
- Affected
- >= 2.6.0, <= 2.6.4
- Fixed in
- 2.6.5
- Check
composer show sulu/sulu
sulu/sulu
- Ecosystem
- Composer (PHP)
- Affected
- >= 2.0.0, <= 2.5.20
- Fixed in
- 2.5.21
- Check
composer show sulu/sulu
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
This vulnerability allows an attacker to inject arbitrary HTML/JavaScript code through the media download URL in Sulu CMS. It affects the SuluMediaBundle component. The vulnerability is a Reflected Cross-Site Scripting (XSS) issue, which could potentially allow attackers to steal sensitive information, manipulate the website's content, or perform actions on behalf of the victim.
Patches
The problem has not been patched yet. Users should upgrade to patched versions once they become available. Currently affected versions are:
- 2.6.4
- 2.5.20
Workarounds
Until an official patch is released, users can implement additional input validation and output encoding for the 'slug' parameter in the MediaStreamController's downloadAction method. Alternatively, configuring a Web Application Firewall (WAF) to filter potentially malicious input could serve as a temporary mitigation.
References
- GitHub repository: https://github.com/sulu/sulu
- Vulnerable code: https://github.com/sulu/sulu/blob/2.6/src/Sulu/Bundle/MediaBundle/Controller/MediaStreamController.php#L106
References
- https://github.com/sulu/sulu/security/advisories/GHSA-6784-9c82-vr85
- https://nvd.nist.gov/vuln/detail/CVE-2024-47617
- https://github.com/sulu/sulu/commit/a5a5ae555d282e88ff8559d38cfb46dea7939bda
- https://github.com/sulu/sulu/commit/eeacd14b6cf55f710084788140d40ebb00314b29
- https://github.com/sulu/sulu/blob/2.6/src/Sulu/Bundle/MediaBundle/Controller/MediaStreamController.php#L106
- https://github.com/advisories/GHSA-6784-9c82-vr85
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-92692
Sulu: JCR-SQL2 injection via `categories` query parameter (unauthenticated)
medium6.9Sep 23, 2026CVE-2026-82394
Sulu: Fix authorization bypass when creating preview links
medium5.3Sep 2, 2026CVE-2026-82395
Sulu: Media move/update authorization bypass (IDOR)
medium5.3Sep 2, 2026CVE-2026-82396
Sulu: Stored XSS via media download inline-disposition override
medium5.4Sep 2, 2026CVE-2026-45701
Sulu: Weak Cryptographical usage for API Key generation and Reset Tokens
medium6.9May 18, 2026GHSA-9m6v-8fxc-4r44
Sulu: Used API Keys may be available via Admin API
low2.3May 18, 2026
