Vulnerability · Published Jul 17, 2024 · Assigned by GitHub_M
CVE-2024-32981Cross-site Scripting vulnerability with encoded payload in silverstripe/framework
Medium 5.4
In plain English
A medium-severity cross-site scripting in silverstripe-framework from silverstripe. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 28% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | silverstripe/framework | 5.2.16 | GHSA-chx7-9x8h-r5mg |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| silverstripe | silverstripe-framework | < 5.2.16 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
References
- https://github.com/silverstripe/silverstripe-framework/security/advisories/GHSA-chx7-9x8h-r5mg x_refsource_CONFIRM
- https://github.com/silverstripe/silverstripe-framework/commit/b8d20dc9d531550e06fd7da7a0eafa551922e2e1 x_refsource_MISC
- https://www.silverstripe.org/download/security-releases/cve-2024-32981 x_refsource_MISC