Silverstripe Framework has a XSS in form messages
Published 14 Jan 2025 · Updated 23 Jan 2025
Affected package
- Affected
- <5.3.8
- Fixed in
- 5.3.8
composer require silverstripe/framework:^5.3.8Details
In some cases, form messages can contain HTML markup. This is an intentional feature, allowing links and other relevant HTML markup for the given message.
Some form messages include content that the user can provide. There are scenarios in the CMS where that content doesn't get correctly sanitised prior to being included in the form message, resulting in an XSS vulnerability.
References
- https://www.silverstripe.org/download/security-releases/cve-2024-53277
Reported by
Leo Diamat from Bastion Security Group
Is GHSA-ff6q-3c9c-6cf5 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected silverstripe/framework, and gives you the command that fixes it.
References
- Linkgithub.com/silverstripe/silverstripe-framework/security/advisories/GHSA-ff6q-3c9c-6cf5
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-53277
- Linkgithub.com/silverstripe/silverstripe-framework/commit/74904f539347b7d1f8c5b5fb9e28d62ff251ee00
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/CVE-2024-53277.yaml
- Packagegithub.com/silverstripe/silverstripe-framework
- Linkwww.silverstripe.org/download/security-releases/cve-2024-53277
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.