CVE-2025-25197: Silverstripe cross-site scripting (XSS) attack in elemental "Content blocks in use" report
An elemental block can include an XSS payload, which can be executed when viewing the "Content blocks in use" report. The vulnerability is specific to that report and is a result of failure to cast input prior to including it in the grid field. References - https://www.silverstripe.org/download/security-releases/CVE-2025-25197
Published Apr 10, 2025
Affected packages
dnadesign/silverstripe-elemental
- Ecosystem
- Composer (PHP)
- Affected
- >= 2.1.2, < 5.3.12
- Fixed in
- 5.3.12
- Check
composer show dnadesign/silverstripe-elemental
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
An elemental block can include an XSS payload, which can be executed when viewing the "Content blocks in use" report.
The vulnerability is specific to that report and is a result of failure to cast input prior to including it in the grid field.
References
- https://www.silverstripe.org/download/security-releases/CVE-2025-25197
References
- https://github.com/silverstripe/silverstripe-elemental/security/advisories/GHSA-x8xm-c7p8-2pj2
- https://github.com/silverstripe/silverstripe-elemental/pull/1345
- https://github.com/FriendsOfPHP/security-advisories/blob/master/dnadesign/silverstripe-elemental/CVE-2025-25197.yaml
- https://www.silverstripe.org/download/security-releases/cve-2025-25197
- https://nvd.nist.gov/vuln/detail/CVE-2025-25197
- https://github.com/silverstripe/silverstripe-elemental/commit/34ff4ed498ccab94cc5f55ef9a56c37f491eda1d
- https://github.com/advisories/GHSA-x8xm-c7p8-2pj2
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
