{"id":"CVE-2024-32981","published":"2024-07-17T19:36:00Z","modified":"2024-08-02T02:27:53Z","title":"Cross-site Scripting vulnerability with encoded payload in silverstripe/framework","vendor":"silverstripe","product":"silverstripe-framework","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00621,"percentile":0.44053,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/silverstripe/silverstripe-framework/security/advisories/GHSA-chx7-9x8h-r5mg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/silverstripe/silverstripe-framework/commit/b8d20dc9d531550e06fd7da7a0eafa551922e2e1","tags":["x_refsource_MISC"]},{"url":"https://www.silverstripe.org/download/security-releases/cve-2024-32981","tags":["x_refsource_MISC"]}],"priority":{"score":12.6,"factors":[{"name":"EPSS percentile","points":8.81},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"silverstripe","affectedVersions":[{"vendor":"silverstripe","product":"silverstripe-framework","versions":["< 5.2.16"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-18T13:18:39.317587Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"silverstripe/framework","vulnerableRanges":["<5.2.16"],"patched":["5.2.16"],"from":["GHSA-chx7-9x8h-r5mg"],"provenance":"source"}],"summary":{"text":"A cross-site scripting flaw in the silverstripe-framework PHP framework, which underpins the Silverstripe CMS, lets encoded payloads submitted through content editing bypass server-side sanitisation and reach the front end of the site. An attacker who has low-privilege access to edit CMS content, reachable over the network with no user interaction needed, could use this to inject JavaScript that executes on the public-facing site.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:07:28Z"},"euvd":{"id":"EUVD-2024-2324","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-silverstripe-framework-cve-2024-32981","children":[{"from":"CVE-2024-32981","to":"CVE-2024-53277","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:silverstripe/framework","fromFixed":"5.2.16","toFixed":"5.3.8","daysApart":181},{"kind":"same-code","provenance":"machine","files":["src/Forms/HTMLEditor/HTMLEditorSanitiser.php"],"commits":["https://github.com/silverstripe/silverstripe-framework/commit/b8d20dc9d531550e06fd7da7a0eafa551922e2e1","https://github.com/silverstripe/silverstripe-framework/commit/74904f539347b7d1f8c5b5fb9e28d62ff251ee00"],"basis":"shared function","functions":["sanitise"]}]}],"packageHistory":[{"cve":"CVE-2023-22728","published":"2023-04-26","fixed":"4.12.5","kev":false},{"cve":"CVE-2023-22729","published":"2023-04-26","fixed":"4.12.5","kev":false},{"cve":"CVE-2023-48714","published":"2024-01-23","fixed":"5.1.11","kev":false,"link":{"from":"CVE-2023-48714","to":"CVE-2024-32981","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:silverstripe/framework","fromFixed":"5.1.11","toFixed":"5.2.16","daysApart":176}]}},{"cve":"CVE-2024-32981","published":"2024-07-17","fixed":"5.2.16","kev":false},{"cve":"CVE-2024-47605","published":"2025-01-14","fixed":"5.3.8","kev":false,"link":{"from":"CVE-2024-32981","to":"CVE-2024-47605","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:silverstripe/framework","fromFixed":"5.2.16","toFixed":"5.3.8","daysApart":181}]}},{"cve":"CVE-2024-53277","published":"2025-01-14","fixed":"5.3.8","kev":false},{"cve":"CVE-2025-30148","published":"2025-04-10","fixed":"5.3.23","kev":false}],"package":"Packagist:silverstripe/framework"}}