{"id":"CVE-2022-30999","published":"2022-05-25T21:30:14Z","modified":"2025-04-22T17:56:29Z","title":"Possible cross-site scripting attack via unsanitized SVG files in FoF Upload","vendor":"FriendsOfFlarum","product":"upload","tier":"tail","description":{"text":"FriendsofFlarum (FoF) Upload is an extension that handles file uploads intelligently for your forum. If FoF Upload prior to version 1.2.3 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. This 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. This issue has been patched with v1.2.3, which now sanitizes uploaded SVG files. As a workaround, remove the ability for users to upload SVG files through FoF Upload.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01126,"percentile":0.6599,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/FriendsOfFlarum/upload/security/advisories/GHSA-fm53-mpmp-7qw2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/FriendsOfFlarum/upload/issues/68","tags":["x_refsource_MISC"]},{"url":"https://github.com/FriendsOfFlarum/upload/pull/318","tags":["x_refsource_MISC"]},{"url":"https://github.com/FriendsOfFlarum/upload/releases/tag/1.2.3","tags":["x_refsource_MISC"]}],"priority":{"score":19.3,"factors":[{"name":"EPSS percentile","points":13.2},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"friendsofflarum","affectedVersions":[{"vendor":"FriendsOfFlarum","product":"upload","versions":["< 1.2.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-04-22T15:43:11.742606Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"fof/upload","vulnerableRanges":["<1.2.3"],"patched":["1.2.3"],"from":["GHSA-fm53-mpmp-7qw2"],"provenance":"source"}],"summary":{"text":"The FoF Upload extension for the Flarum forum platform, prior to version 1.2.3, fails to sanitize uploaded SVG files when configured to allow them, so the stored files can carry attacker-controlled script. An attacker who can upload an SVG and get a user to navigate directly to its URL (requiring a low-privilege authenticated account and user interaction) can run arbitrary JavaScript in that user's session, enabling forged web requests to Flarum or other services and potentially leaking or modifying data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:22Z"},"euvd":{"id":"EUVD-2022-3803","exploited":false,"provenance":"source"}}