Security Vulnerability Report
中文
CVE-2026-4078 CVSS 6.4 MEDIUM

CVE-2026-4078

Published: 2026-04-24 08:16:30
Last Modified: 2026-04-24 14:38:27

Description

The ITERAS plugin for WordPress is vulnerable to Stored Cross-Site Scripting via multiple shortcodes (iteras-ordering, iteras-signup, iteras-paywall-login, iteras-selfservice) in all versions up to and including 1.8.2. This is due to insufficient input sanitization and output escaping in the combine_attributes() function. The function directly concatenates shortcode attribute values into JavaScript code within <script> tags using double-quoted string interpolation (line 489: '"'.$key.'": "'.$value.'"') without any escaping. An attacker can break out of the JavaScript string context by including a double-quote character in a shortcode attribute value and inject arbitrary JavaScript. 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.

ITERAS WordPress Plugin <= 1.8.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2026-4078 PoC --> <!-- Exploit shortcode: iteras-ordering --> <!-- Payload injects double quotes to break out of the JS string context --> [iteras-ordering some_attr='", "x": "alert(1)"'] <!-- Resulting in JS: --> <!-- { "some_attr": "", "x": "alert(1)" } -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-4078", "sourceIdentifier": "[email protected]", "published": "2026-04-24T08:16:30.373", "lastModified": "2026-04-24T14:38:26.740", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The ITERAS plugin for WordPress is vulnerable to Stored Cross-Site Scripting via multiple shortcodes (iteras-ordering, iteras-signup, iteras-paywall-login, iteras-selfservice) in all versions up to and including 1.8.2. This is due to insufficient input sanitization and output escaping in the combine_attributes() function. The function directly concatenates shortcode attribute values into JavaScript code within <script> tags using double-quoted string interpolation (line 489: '\"'.$key.'\": \"'.$value.'\"') without any escaping. An attacker can break out of the JavaScript string context by including a double-quote character in a shortcode attribute value and inject arbitrary JavaScript. 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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "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": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/iteras/tags/1.8.2/public/iteras-public.php#L489", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/iteras/tags/1.8.2/public/iteras-public.php#L511", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/iteras/tags/1.8.2/public/iteras-public.php#L519", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/iteras/tags/1.8.2/public/iteras-public.php#L527", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/iteras/tags/1.8.2/public/iteras-public.php#L551", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/iteras/tags/1.8.2/public/iteras-public.php#L561", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/iteras/trunk/public/iteras-public.php#L489", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/iteras/trunk/public/iteras-public.php#L511", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/iteras/trunk/public/iteras-public.php#L519", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/iteras/trunk/public/iteras-public.php#L527", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/iteras/trunk/public/iteras-public.php#L551", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/iteras/trunk/public/iteras-public.php#L561", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3507724%40iteras&new=3507724%40iteras&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/bd034f43-370c-4ad9-ad02-4cae0f48d781?source=cve", "source": "[email protected]"}]}}