Invalid file type upload

Only allow SVG file types to be uploaded if our sanitizer is able to run on those files.

This vulnerability affects the following application versions:

  • Safe SVG 1.8.0
  • Safe SVG 1.8.1
  • Safe SVG 1.9.0
  • Safe SVG 1.9.1
  • Safe SVG 1.9.2
  • Safe SVG 1.9.3
  • Safe SVG 1.9.4
  • Safe SVG 1.9.5
  • Safe SVG 1.9.6
  • Safe SVG 1.9.7
  • Safe SVG 1.9.8
  • Safe SVG 1.9.9
  • Safe SVG 1.9.10
  • Safe SVG 2.0.0
  • Safe SVG 2.0.1
  • Safe SVG 2.0.2
  • Safe SVG 2.0.3
  • Safe SVG 2.1.0
  • Safe SVG 2.1.1
  • Safe SVG 2.2.0
  • Safe SVG 2.2.1
  • Safe SVG 2.2.2
  • Safe SVG 2.2.3
  • Safe SVG 2.2.4
  • Safe SVG 2.2.5
  • Safe SVG 2.2.6

XSS in file upload

The Safe SVG plugin for WordPress is vulnerable to Stored Cross-Site Scripting via SVG File uploads in all versions up to, and including, 2.2.5 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses the SVG file.

CVE number: CVE-2024-8378

This vulnerability affects the following application versions:

  • Safe SVG 1.0.0
  • Safe SVG 1.1.0
  • Safe SVG 1.1.1
  • Safe SVG 1.2.0
  • Safe SVG 1.3.0
  • Safe SVG 1.3.1
  • Safe SVG 1.3.2
  • Safe SVG 1.3.3
  • Safe SVG 1.3.4
  • Safe SVG 1.4.0
  • Safe SVG 1.4.1
  • Safe SVG 1.4.2
  • Safe SVG 1.4.3
  • Safe SVG 1.4.4
  • Safe SVG 1.4.5
  • Safe SVG 1.5.0
  • Safe SVG 1.5.1
  • Safe SVG 1.5.2
  • Safe SVG 1.5.3
  • Safe SVG 1.6.0
  • Safe SVG 1.6.1
  • Safe SVG 1.7.1
  • Safe SVG 1.8.0
  • Safe SVG 1.8.1
  • Safe SVG 1.9.0
  • Safe SVG 1.9.1
  • Safe SVG 1.9.2
  • Safe SVG 1.9.3
  • Safe SVG 1.9.4
  • Safe SVG 1.9.5
  • Safe SVG 1.9.6
  • Safe SVG 1.9.7
  • Safe SVG 1.9.8
  • Safe SVG 1.9.9
  • Safe SVG 1.9.10
  • Safe SVG 2.0.0
  • Safe SVG 2.0.1
  • Safe SVG 2.0.2
  • Safe SVG 2.0.3
  • Safe SVG 2.1.0
  • Safe SVG 2.1.1
  • Safe SVG 2.2.0
  • Safe SVG 2.2.1
  • Safe SVG 2.2.2
  • Safe SVG 2.2.3
  • Safe SVG 2.2.4
  • Safe SVG 2.2.5