Description
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.
Published: 2026-07-11
Score: 7.2 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The plugin contains a stored cross‑site scripting flaw that can be triggered by unauthenticated users. The 'approval_code' parameter is accepted and persisted without proper sanitization or output escaping user views an affected page, enabling phishing, credential theft, or other malicious client‑side actions. The weakness is classified as a cross‑site scripting issue (CWE‑79).

Affected Systems

All installations of the CorvusPay Woo up to and including version 2.7.4 on WordPress sites are vulnerable. The flaw exists across the plugin’s REST endpoint and related order handling modules.

Risk and Exploitability

The CVSS score medium‑to‑high severity. The EPSS score of less than 1% suggests a low probability of exploitation at present, and the vulnerability is not currently listed in CISA’s KEV catalog. Nonetheless, the attack vector is straightforward: any unauthenticated user can POST to the /wp-json/corvuspay/success/ endpoint and supply a malicious signature, leading to the storage of a script that will execute in the context of subsequent page loads for other users. Because the signature validation step does not halt execution, attackers do not need privileged access to exploit the flaw.

Generated by OpenCVE AI on July 29, 2026 at 09:14 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the CorvusPay WooCommerce Payment Gateway contains the XSS fix.
  • If an upgrade is not immediately possible, disable or restrict the exposed REST endpoint by changing its permission callback to __return_false, or implement strict signature verification that stops processing on failure.
  • Ensure that all input, especially the 'approval_code' field, is properly safely escaped to prevent further script injection.

Generated by OpenCVE AI on July 29, 2026 at 09:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 13 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 11 Jul 2026 06:30:00 +0000

Type Values Removed Values Added
Description 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.
Title CorvusPay WooCommerce Payment Gateway <= 2.7.4 - Unauthenticated Stored Cross-Site Scripting via 'approval_code' Parameter
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-07-13T17:30:54.461Z

Reserved: 2026-04-23T19:42:23.702Z

Link: CVE-2026-6939

cve-icon Vulnrichment

Updated: 2026-07-13T17:30:51.277Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T09:15:05Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')