Possible cross-site scripting attack via unsanitized SVG files in FoF Upload
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| FriendsOfFlarum | upload | before 1.2.3 | 1.2.3 | Patch available | CNA |
| — | fof/upload (Packagist) | before 1.2.3 | 1.2.3 | Patch available | GHSA-fm53-mpmp-7qw2 |
- upload VendorFriendsOfFlarum Affected before 1.2.3 Fixed in 1.2.3 Patch available CNA
- fof/upload (Packagist) Vendor— Affected before 1.2.3 Fixed in 1.2.3 Patch available GHSA-fm53-mpmp-7qw2
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:friendsofflarum:upload:*:*:*:*:*:*:*:* | before 1.2.3 | Vulnerable | FriendsOfFlarum |
- cpe:2.3:a:friendsofflarum:upload:*:*:*:*:*:*:*:* Versions before 1.2.3 Vulnerable ·FriendsOfFlarum
Remediation
- Fix · CNA upload (FriendsOfFlarum) Fixed in 1.2.3
- Fix · GHSA-fm53-mpmp-7qw2 fof/upload (Packagist) Fixed in 1.2.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-30999
- 2026-10-03 Alias added: GHSA-fm53-mpmp-7qw2
References
Patch 2
Advisory 2
Sources
- CVE-2022-30999 · CVE Program
- CVE-2022-30999 · NVD
- FIRST EPSS
- GHSA-fm53-mpmp-7qw2 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences