Arbitrary File Upload Affecting darylldoyle/safe-svg package, versions <1.9.10


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.2% (70th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-DARYLLDOYLESAFESVG-2767136
  • published19 Apr 2022
  • disclosed19 Apr 2022
  • creditDavid Hamann

Introduced: 19 Apr 2022

CVE-2022-1091  (opens in a new tab)
CWE-434  (opens in a new tab)

How to fix?

Upgrade darylldoyle/safe-svg to version 1.9.10 or higher.

Overview

darylldoyle/safe-svg is a plugin that enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website

Affected versions of this package are vulnerable to Arbitrary File Upload due to the improper sanitization process of the Safe SVG WordPress plugin, which can be bypassed by spoofing the content type in the POST request to upload a file.

CVSS Base Scores

version 3.1