Description
The Custom Payment Gateways for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'alg_wc_cpg_input_fields' parameter in all versions up to, and including, 2.1.0 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. This vulnerability is exploitable by unauthenticated guest users submitting a crafted checkout POST request, requiring no custom input fields to be configured in the plugin.
Published: 2026-07-01
Score: 7.2 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Custom Payment Gateways for WooCommerce plugin is vulnerable to stored cross‑site scripting through the 'alg_wc_cpg_input_fields' parameter because input sanitization is insufficient, allowing an unauthenticated attacker to embed malicious scripts that are stored and executed whenever a checkout page is accessed. This flaw can be triggered by a crafted checkout POST request without requiring any custom input fields to be configured.

Affected Systems

WordPress installations that have the Custom Payment Gateways for WooCommerce plugin from dhruvin and are running any version up to and including 2.1.0 are affected. Versions beyond 2.1.0 are not vulnerable, but the plugin should be up‑to‑date to avoid this issue.

Risk and Exploitability

The flaw has a CVSS score of 7.2, classifying it as high severity. EPSS data is not available, so the exact likelihood of exploitation is unknown, though the vulnerability is publicly documented and can be abused by unauthenticated guests via checkout POST requests; it is not listed in the CISA KEV catalog.

Generated by OpenCVE AI on July 1, 2026 at 15:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Custom Payment Gateways for WooCommerce to a version newer than 2.1.0 that includes the input sanitization fix.
  • If an update is not possible, disable the custom payment gateway input fields or remove the plugin entirely to prevent exploitation.
  • Implement a web application firewall rule or enforce a content‑security policy that blocks execution of injected scripts via checkout POST requests.

Generated by OpenCVE AI on July 1, 2026 at 15:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 01 Jul 2026 11:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 01 Jul 2026 05:00:00 +0000

Type Values Removed Values Added
Description The Custom Payment Gateways for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'alg_wc_cpg_input_fields' parameter in all versions up to, and including, 2.1.0 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. This vulnerability is exploitable by unauthenticated guest users submitting a crafted checkout POST request, requiring no custom input fields to be configured in the plugin.
Title Custom Payment Gateways for WooCommerce <= 2.1.0 - Unauthenticated Stored Cross-Site Scripting via 'alg_wc_cpg_input_fields' 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-01T10:32:05.050Z

Reserved: 2026-04-30T16:09:12.074Z

Link: CVE-2026-7517

cve-icon Vulnrichment

Updated: 2026-07-01T10:30:45.887Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-01T15:15:04Z

Weaknesses
  • CWE-79

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