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
- github.com/FriendsOfPHP/security-advisories/blob/master/dnadesign/silverstripe-elemental/CVE-2025-25197.yaml
- github.com/advisories/GHSA-x8xm-c7p8-2pj2
- github.com/silverstripe/silverstripe-elemental
- github.com/silverstripe/silverstripe-elemental/pull/1345
- github.com/silverstripe/silverstripe-elemental/security/advisories/GHSA-x8xm-c7p8-2pj2
- nvd.nist.gov/vuln/detail/CVE-2025-25197
- www.silverstripe.org/download/security-releases/cve-2025-25197
Code Behaviors & Features
Detect and mitigate CVE-2025-25197 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →