---
id: CVE-2026-6939
title: >-
  The CorvusPay WooCommerce Payment Gateway plugin for WordPress is vulnerable
  to Stored Cross-Site Scripting via the 'approval_code' parameter in all
  versions up to, and including, 2.7.4 due to insufficient input sanitization
  and output e…
summary: >-
  The CorvusPay WooCommerce Payment Gateway plugin for WordPress is vulnerable
  to Stored Cross-Site Scripting via the 'approval_code' parameter in all
  versions up to, and including, 2.7.4 due to insufficient input sanitization
  and output e…
severity: high
cvss: 7.2
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
published: '2026-07-11'
updated: '2026-07-11'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-6939'
references:
  - url: >-
      https://plugins.trac.wordpress.org/browser/corvuspay-woocommerce-integration/tags/2.7.2/includes/class-wc-gateway-corvuspay.php#L1713
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/corvuspay-woocommerce-integration/tags/2.7.2/includes/class-wc-gateway-corvuspay.php#L202
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/corvuspay-woocommerce-integration/tags/2.7.2/includes/class-wc-order-corvuspay.php#L185
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/corvuspay-woocommerce-integration/tags/2.7.3/includes/class-wc-gateway-corvuspay.php#L1713
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/corvuspay-woocommerce-integration/tags/2.7.3/includes/class-wc-gateway-corvuspay.php#L202
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/corvuspay-woocommerce-integration/tags/2.7.3/includes/class-wc-order-corvuspay.php#L185
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/corvuspay-woocommerce-integration/trunk/includes/class-wc-gateway-corvuspay.php#L1713
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/corvuspay-woocommerce-integration/trunk/includes/class-wc-gateway-corvuspay.php#L202
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/browser/corvuspay-woocommerce-integration/trunk/includes/class-wc-order-corvuspay.php#L185
    label: security@wordfence.com
  - url: >-
      https://plugins.trac.wordpress.org/changeset?reponame=&old=3576949%40corvuspay-woocommerce-integration&new=3576949%40corvuspay-woocommerce-integration
    label: security@wordfence.com
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/d8a81c01-495f-4861-b66f-000072e99512?source=cve
    label: security@wordfence.com
tags:
  - nvd
epss: 0.00562
epssPercentile: 0.44414
ingestedAt: '2026-07-11T23:16:20.899Z'
---

## Overview

The CorvusPay WooCommerce Payment Gateway plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'approval_code' parameter in all versions up to, and including, 2.7.4 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The unauthenticated REST endpoint POST /wp-json/corvuspay/success/ is registered with permission_callback set to __return_true, and although a signature validation step exists it only logs the result without halting execution, meaning an attacker can supply a completely arbitrary signature and have a malicious approval_code stored in the database unchallenged.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
