# CVE-2024-32981: Cross-site Scripting vulnerability with encoded payload in silverstripe/framework

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Published: 2024-07-17T14:27:37.000Z
- Modified: 2026-09-10T03:50:16.404Z
- Also known as: GHSA-chx7-9x8h-r5mg
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Silverstripe framework is the PHP framework forming the base for the Silverstripe CMS. In affected versions a bad actor with access to edit content in the CMS could add send a specifically crafted encoded payload to the server, which could be used to inject a JavaScript payload on the front end of the site. The payload would be sanitised on the client-side, but server-side sanitisation doesn't catch it. The server-side sanitisation logic has been updated to sanitise against this type of attack in version 5.2.16. All users are advised to upgrade. There are no known workarounds for this vulnerability.

(As written by CVE List.)

## Affected

- silverstripe silverstripe-framework: < 5.2.16
- silverstripe/framework (Packagist): before 5.2.16
- silverstripe framework: before 5.2.16

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/silverstripe/silverstripe-framework/security/advisories/GHSA-chx7-9x8h-r5mg> (third-party-advisory, web)
- <https://github.com/silverstripe/silverstripe-framework/commit/b8d20dc9d531550e06fd7da7a0eafa551922e2e1> (patch, web)
- <https://www.silverstripe.org/download/security-releases/cve-2024-32981> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-32981> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/CVE-2024-32981.yaml> (web)
- <https://github.com/silverstripe/silverstripe-framework> (package)

## Sources

- CVE List: [CVE-2024-32981](https://www.cve.org/CVERecord?id=CVE-2024-32981), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-chx7-9x8h-r5mg](https://github.com/advisories/GHSA-chx7-9x8h-r5mg), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-32981](https://nvd.nist.gov/vuln/detail/CVE-2024-32981), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-32981 · Whole record: https://cve.day/CVE-2024-32981.json · Rebuilt by cve.day 2026-11-25T22:58:43.030Z
