{"id":"CVE-2024-32981","aliases":["CVE-2024-32981","GHSA-chx7-9x8h-r5mg"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting vulnerability with encoded payload in silverstripe/framework","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nA bad actor with access to edit content in the CMS could 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.\n\nThe server-side sanitisation logic has been updated to sanitise against this type of attack.\n\n### References\n- https://www.silverstripe.org/download/security-releases/cve-2024-32981","format":"markdown","source":"ghsa"},{"lang":"es","text":"El framework Silverstripe es el framework PHP que forma la base del CMS Silverstripe. En las versiones afectadas, un mal actor con acceso para editar contenido en el CMS podría enviar un payload codificado específicamente manipulado al servidor, que podría usarse para inyectar un payload de JavaScript en la parte frontal del sitio. El payload se sanitizaría en el lado del cliente, pero la sanitización del lado del servidor no la detecta. La lógica de sanitización del lado del servidor se actualizó para protegerse contra este tipo de ataque en la versión 5.2.16. Se recomienda a todos los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad.","source":"nvd"}],"published":"2024-07-17T14:27:37.000Z","modified":"2026-09-10T03:50:16.404Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 5.2.16","status":"affected"}],"vendor":"silverstripe","product":"silverstripe-framework","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.2.16"}],"ecosystem":"Packagist","package":"silverstripe/framework","purl":"pkg:composer/silverstripe/framework","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.2.16"}],"vendor":"silverstripe","product":"framework","cpe":"cpe:2.3:a:silverstripe:framework:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/silverstripe/silverstripe-framework/security/advisories/GHSA-chx7-9x8h-r5mg","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/silverstripe/silverstripe-framework/commit/b8d20dc9d531550e06fd7da7a0eafa551922e2e1","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.silverstripe.org/download/security-releases/cve-2024-32981","tags":["vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32981","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/CVE-2024-32981.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/silverstripe/silverstripe-framework","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-07-18T13:18:39.317Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-32981","url":"https://www.cve.org/CVERecord?id=CVE-2024-32981","licence":"CVE Terms of Use","modified":"2024-08-02T02:27:53.196Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-chx7-9x8h-r5mg","url":"https://github.com/advisories/GHSA-chx7-9x8h-r5mg","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:16.404Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-32981","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32981","licence":"Public domain","modified":"2026-06-17T07:30:48.920Z"}],"updatedAt":"2026-11-25T22:58:43.030Z","epss":{"score":0.00346,"percentile":0.30115,"date":"2026-12-01T12:00:22.000Z"}}