{"id":"CVE-2022-30999","aliases":["GHSA-fm53-mpmp-7qw2"],"url":"https://o3.security/vulnerability/CVE-2022-30999","summary":"Possible cross-site scripting attack via unsanitized SVG files in FoF Upload","details":"### Impact\nIf FoF Upload is configured to allow the uploading of SVG files (`image/svg+xml`), navigating directly to an SVG file URI could execute arbitrary Javascript code decided by an attacker.\n\nThis Javascript code could include the execution of HTTP web requests to Flarum, or any other web service. This could allow data to be leaked by an authenticated Flarum user, or, possibly, for data to be modified maliciously.\n\n### Patches\nThis has been patched with v1.2.3, which now sanitizes uploaded SVG files.\n\n### Workarounds\nUpgrade to `1.2.3` (requires Flarum 1.2 or later), or remove the ability for users to upload SVG files through FoF Upload.\n\n### References\nThank you to Safwat Refaat for the responsible disclosure of this vulnerability.\n","published":"2022-05-25T21:30:14Z","modified":"2026-08-12T03:51:31.522888965Z","cvss":{"score":8.7,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Packagist","name":"fof/upload","fixedVersion":"1.2.3"}],"fix":{"url":"https://github.com/FriendsOfFlarum/upload/pull/318","label":"FriendsOfFlarum/upload#318"},"references":[{"type":"WEB","url":"https://github.com/FriendsOfFlarum/upload/releases/tag/1.2.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/30xxx/CVE-2022-30999.json"},{"type":"ADVISORY","url":"https://github.com/FriendsOfFlarum/upload/security/advisories/GHSA-fm53-mpmp-7qw2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-30999"},{"type":"REPORT","url":"https://github.com/FriendsOfFlarum/upload/issues/68"},{"type":"FIX","url":"https://github.com/FriendsOfFlarum/upload/pull/318"},{"type":"PACKAGE","url":"https://github.com/FriendsOfFlarum/upload"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:31.522888965Z"}}