{"id":"GHSA-38h6-gmr2-j4wx","summary":"Silverstripe Form Capture vulnerable to stored cross-site-scripting","details":"### Impact\nImproper escaping when presenting stored form submissions allowed for an attacker to perform a Cross-Site Scripting attack\n\n### Patches\nThe vulnerability was initially patched in version 1.0.2, and version 1.1.0 includes this patch. The bug was then accidentally re-introduced during a merge error, and has been re-patched in versions 2.2.5 and 3.1.1.","aliases":["CVE-2023-28851"],"modified":"2026-09-10T03:49:53.332664314Z","published":"2023-04-03T21:06:31Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2023-04-03T21:06:31Z","nvd_published_at":"2023-04-03T18:15:00Z","cwe_ids":["CWE-79"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/bigfork/silverstripe-form-capture/security/advisories/GHSA-38h6-gmr2-j4wx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-28851"},{"type":"WEB","url":"https://github.com/bigfork/silverstripe-form-capture/commit/3a7a3c480e3fccddce9c5f359796d45a8302a622"},{"type":"WEB","url":"https://github.com/bigfork/silverstripe-form-capture/commit/5b3aa39dd1eef042f173167b0fa4d3f717971772"},{"type":"PACKAGE","url":"https://github.com/bigfork/silverstripe-form-capture"}],"affected":[{"package":{"name":"bigfork/silverstripe-form-capture","ecosystem":"Packagist","purl":"pkg:composer/bigfork/silverstripe-form-capture"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.1.1"}]}],"versions":["3.0.0","3.1.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/04/GHSA-38h6-gmr2-j4wx/GHSA-38h6-gmr2-j4wx.json"}},{"package":{"name":"andrewhaine/silverstripe-form-capture","ecosystem":"Packagist","purl":"pkg:composer/andrewhaine/silverstripe-form-capture"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.2.0"},{"fixed":"1.0.2"}]}],"versions":["0.2.0","0.2.1","0.2.3","1.0","1.0.1"],"database_specific":{"last_known_affected_version_range":"\u003c= 0.2.3","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/04/GHSA-38h6-gmr2-j4wx/GHSA-38h6-gmr2-j4wx.json"}},{"package":{"name":"andrewhaine/silverstripe-form-capture","ecosystem":"Packagist","purl":"pkg:composer/andrewhaine/silverstripe-form-capture"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.2.5"}]}],"versions":["2.0.0","2.0.1","2.0.2","2.1.0","2.2.0","2.2.1","2.2.2","2.2.3","2.2.4"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/04/GHSA-38h6-gmr2-j4wx/GHSA-38h6-gmr2-j4wx.json"}},{"package":{"name":"andrewhaine/silverstripe-form-capture","ecosystem":"Packagist","purl":"pkg:composer/andrewhaine/silverstripe-form-capture"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0"},{"fixed":"1.0.2"}]}],"versions":["1.0.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/04/GHSA-38h6-gmr2-j4wx/GHSA-38h6-gmr2-j4wx.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}