{"id":"GHSA-468j-6jrc-2rjx","aliases":[],"status":"published","title":"silverstripe/framework vulnerable to Cross-site Scripting In `OptionsetField` and `CheckboxSetField`","description":"List of key / value pairs assigned to `OptionsetField` or `CheckboxSetField` do not have a default casting assigned to them. The effect of this is a potential XSS vulnerability in lists where either key or value contain unescaped HTML.","severity":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2024-05-27T19:09:53Z","modified":"2024-12-02T05:44:24Z","fixes":[{"ecosystem":"Packagist","package":"silverstripe/framework","fixed_in":["3.1.20","3.2.5","3.3.3","3.4.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"silverstripe/framework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.19-rc1"},{"fixed":"3.1.20"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"silverstripe/framework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.2.4-rc1"},{"fixed":"3.2.5"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"silverstripe/framework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.3.2-rc1"},{"fixed":"3.3.3"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"silverstripe/framework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.4.0-rc1"},{"fixed":"3.4.1"}]}]},{"source":"osv","ecosystem":"Packagist","package":"silverstripe/framework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.19-rc1"},{"fixed":"3.1.20"}]}],"versions":["3.1.19","3.1.19-rc1","3.1.20-rc1","3.1.20-rc2"]},{"source":"osv","ecosystem":"Packagist","package":"silverstripe/framework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.2.4-rc1"},{"fixed":"3.2.5"}]}],"versions":["3.2.4","3.2.4-rc1","3.2.5-rc1","3.2.5-rc2"]},{"source":"osv","ecosystem":"Packagist","package":"silverstripe/framework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.3.2-rc1"},{"fixed":"3.3.3"}]}],"versions":["3.3.2","3.3.2-rc1","3.3.3-rc1","3.3.3-rc2"]},{"source":"osv","ecosystem":"Packagist","package":"silverstripe/framework","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.4.0-rc1"},{"fixed":"3.4.1"}]}],"versions":["3.4.0","3.4.0-rc1","3.4.1-rc1","3.4.1-rc2"]}],"references":[{"url":"https://github.com/silverstripe/silverstripe-framework/commit/049cdefacfd3122d59d5488c1317f999fe8aacc4","tags":["web"]},{"url":"https://github.com/silverstripe/silverstripe-framework/commit/12a6b357e761f09d818fd0013eb2d85014de79a0","tags":["web"]},{"url":"https://github.com/silverstripe/silverstripe-framework/commit/62a242154ec3508fe9b174a40713c8520ac1684c","tags":["web"]},{"url":"https://github.com/silverstripe/silverstripe-framework/commit/b0ba2015d9684ee7b124dafcf6b59b046e20f8ed","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2016-015-1.yaml","tags":["web"]},{"url":"https://www.silverstripe.org/download/security-releases/ss-2016-015","tags":["web"]},{"url":"https://github.com/advisories/GHSA-468j-6jrc-2rjx"},{"url":"https://github.com/silverstripe/silverstripe-framework","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-468j-6jrc-2rjx","title":"silverstripe/framework vulnerable to Cross-site Scripting In `OptionsetField` and `CheckboxSetField`","description":"List of key / value pairs assigned to `OptionsetField` or `CheckboxSetField` do not have a default casting assigned to them. The effect of this is a potential XSS vulnerability in lists where either key or value contain unescaped HTML.\n\n","status":"published","published":"2024-05-27T19:09:53Z","modified":"2024-05-27T19:09:55Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:52.2286Z"}],"osv":[{"id":"GHSA-468j-6jrc-2rjx","title":"silverstripe/framework vulnerable to Cross-site Scripting In `OptionsetField` and `CheckboxSetField`","description":"List of key / value pairs assigned to `OptionsetField` or `CheckboxSetField` do not have a default casting assigned to them. The effect of this is a potential XSS vulnerability in lists where either key or value contain unescaped HTML.\n\n","status":"published","published":"2024-05-27T19:09:53Z","modified":"2024-12-02T05:44:24.641832Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:36.434231Z"}]}}
