{"id":"CVE-2024-32981","summary":"Cross-site Scripting vulnerability with encoded payload in silverstripe/framework","details":"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.","aliases":["GHSA-chx7-9x8h-r5mg"],"modified":"2026-08-12T03:51:39.198001009Z","published":"2024-07-17T19:36:00.563Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32981.json"},"references":[{"type":"WEB","url":"https://www.silverstripe.org/download/security-releases/cve-2024-32981"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32981.json"},{"type":"ADVISORY","url":"https://github.com/silverstripe/silverstripe-framework/security/advisories/GHSA-chx7-9x8h-r5mg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32981"},{"type":"FIX","url":"https://github.com/silverstripe/silverstripe-framework/commit/b8d20dc9d531550e06fd7da7a0eafa551922e2e1"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/silverstripe/silverstripe-framework","events":[{"introduced":"0"},{"fixed":"b6e347ef3dcf61060d645d5fbc83cda951eb6382"},{"fixed":"b8d20dc9d531550e06fd7da7a0eafa551922e2e1"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"5.2.16"}],"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:silverstripe:framework:*:*:*:*:*:*:*:*"}}],"versions":["5.2.15","5.2.14","5.2.13","5.2.12","5.2.11","5.2.10","5.2.9","5.2.8","5.2.7","5.2.6","5.2.5","5.2.4","5.2.3","5.2.2","5.2.1","5.2.0","5.2.0-rc1","5.2.0-beta1","5.1.0-beta1","5.0.0-beta1","5.0.0-alpha1","4.9.0-beta1","4.9.0-alpha1","4.8.0-beta1","4.7.0-beta1","4.6.0-beta1","4.1.0-rc1","4.0.0-beta3","4.0.0-beta2","4.0.0-beta1","4.0.0-alpha7","4.0.0-alpha6","4.0.0-alpha4","4.0.0-alpha3","4.0.0-alpha2","4.0.0-alpha1","3.0.0-rc1","3.0.0-beta3","3.0.0-beta2","3.0.0-beta1","3.0.0-alpha2","3.0.0-alpha1","2.2.2-rc1","2.3.0-rc1","2.2.0-rc1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-32981.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"}]}