{"id":"CVE-2022-30999","aliases":["CVE-2022-30999","GHSA-fm53-mpmp-7qw2"],"related":[],"kind":"vulnerability","state":"published","title":"Possible cross-site scripting attack via unsanitized SVG files in FoF Upload","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"FriendsofFlarum (FoF) Upload es una extensión que maneja las subidas de archivos de forma inteligente para su foro. Si FoF Upload versiones anteriores a 1.2.3, está configurado para permitir la subida de archivos SVG (\"image/svg+xml\"), la navegación directa a un URI de archivo SVG podría ejecutar código Javascript arbitrario decidido por un atacante. Este código Javascript podría incluir la ejecución de peticiones web HTTP a Flarum, o a cualquier otro servicio web. Esto podría permitir la filtración de datos por parte de un usuario autenticado de Flarum, o, posiblemente, la modificación de datos de forma maliciosa. Este problema ha sido parcheado con la versión v1.2.3, que ahora sanea los archivos SVG cargados. Como mitigación , elimine la posibilidad de que los usuarios suban archivos SVG mediante FoF Upload","source":"nvd"}],"published":"2022-05-25T21:30:14.000Z","modified":"2026-06-17T04:44:34.690Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","score":3.5,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 1.2.3","status":"affected"}],"vendor":"FriendsOfFlarum","product":"upload","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.2.3"}],"ecosystem":"Packagist","package":"fof/upload","purl":"pkg:composer/fof/upload","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.2.3"}],"vendor":"friendsofflarum","product":"upload","cpe":"cpe:2.3:a:friendsofflarum:upload:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/FriendsOfFlarum/upload/security/advisories/GHSA-fm53-mpmp-7qw2","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/FriendsOfFlarum/upload/issues/68","tags":["exploit","issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/FriendsOfFlarum/upload/pull/318","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/FriendsOfFlarum/upload/releases/tag/1.2.3","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-30999","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfFlarum/upload","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-04-22T15:43:11.742Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-30999","url":"https://www.cve.org/CVERecord?id=CVE-2022-30999","licence":"CVE Terms of Use","modified":"2025-04-22T17:56:29.739Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fm53-mpmp-7qw2","url":"https://github.com/advisories/GHSA-fm53-mpmp-7qw2","licence":"CC-BY-4.0","modified":"2023-11-08T04:09:22.109Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-30999","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-30999","licence":"Public domain","modified":"2026-06-17T04:44:34.690Z"}],"updatedAt":"2026-11-25T22:58:12.069Z","epss":{"score":0.01263,"percentile":0.70511,"date":"2026-12-01T12:00:22.000Z"}}