Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. fof/upload
  4. ›
  5. CVE-2022-30999

CVE-2022-30999: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

June 2, 2022 (updated June 10, 2022)

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.

References

  • github.com/FriendsOfFlarum/upload/issues/68
  • github.com/FriendsOfFlarum/upload/pull/318
  • github.com/FriendsOfFlarum/upload/releases/tag/1.2.3
  • github.com/FriendsOfFlarum/upload/security/advisories/GHSA-fm53-mpmp-7qw2
  • github.com/advisories/GHSA-fm53-mpmp-7qw2
  • nvd.nist.gov/vuln/detail/CVE-2022-30999

Code Behaviors & Features

Detect and mitigate CVE-2022-30999 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.2.3

Fixed versions

  • 1.2.3

Solution

Upgrade to version 1.2.3 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/fof/upload/CVE-2022-30999.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:13 +0000.