# CVE-2022-30999: Possible cross-site scripting attack via unsanitized SVG files in FoF Upload

- Severity: High 8.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.26%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-05-25T21:30:14.000Z
- Modified: 2026-06-17T04:44:34.690Z
- Also known as: GHSA-fm53-mpmp-7qw2
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- FriendsOfFlarum upload: < 1.2.3; before 1.2.3
- fof/upload (Packagist): before 1.2.3

## Every score

- GitHub_M: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/FriendsOfFlarum/upload/issues/68> (exploit, issue-tracking, third-party-advisory, web)
- <https://github.com/FriendsOfFlarum/upload/security/advisories/GHSA-fm53-mpmp-7qw2> (third-party-advisory, web)
- <https://github.com/FriendsOfFlarum/upload/pull/318> (patch, third-party-advisory, web)
- <https://github.com/FriendsOfFlarum/upload/releases/tag/1.2.3> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-30999> (advisory)
- <https://github.com/FriendsOfFlarum/upload> (package)

## Sources

- CVE List: [CVE-2022-30999](https://www.cve.org/CVERecord?id=CVE-2022-30999), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-fm53-mpmp-7qw2](https://github.com/advisories/GHSA-fm53-mpmp-7qw2), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-30999](https://nvd.nist.gov/vuln/detail/CVE-2022-30999), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-30999 · Whole record: https://cve.day/CVE-2022-30999.json · Rebuilt by cve.day 2026-11-25T22:58:12.069Z
