WP Lightbox 2 Security & Risk Analysis

wordpress.org/plugins/wp-lightbox-2

WP Lightbox 2 adds stunning lightbox effects to images and galleries on your WordPress site.

30K active installs v3.0.7 PHP + WP 3.0+ Updated Jan 31, 2026
galleryimagelightboxlightbox-popupphoto-gallery
96
A · Safe
CVEs total3
Unpatched0
Last CVEJun 9, 2025
Safety Verdict

Is WP Lightbox 2 Safe to Use in 2026?

Generally Safe

Score 96/100

WP Lightbox 2 has a strong security track record. Known vulnerabilities have been patched promptly.

3 known CVEsLast CVE: Jun 9, 2025Updated 2mo ago
Risk Assessment

The wp-lightbox-2 plugin, version 3.0.7, exhibits a generally good security posture based on the static analysis. The absence of critical or high severity taint flows, coupled with the use of prepared statements for all SQL queries and a high percentage of properly escaped output, are positive indicators. The plugin also incorporates nonce and capability checks, and its attack surface appears well-protected with no unprotected entry points. However, a significant concern arises from its vulnerability history. The plugin has a notable history of three known CVEs, with one still considered high severity and two medium. This pattern of past vulnerabilities, particularly the prevalence of Cross-site Scripting issues, suggests a recurring weakness in how user input is handled or neutralized, even though the current static analysis did not flag immediate XSS risks. The most recent vulnerability being in 2025 also raises questions about the timeliness of security patching and development practices.

While the current version appears to have addressed past issues to some extent, the historical context necessitates caution. The presence of file operations, although only one and not flagged as concerning in static analysis, should be monitored in conjunction with the plugin's overall functionality. The lack of bundled libraries is a strength, as it avoids potential vulnerabilities from outdated third-party code. In conclusion, wp-lightbox-2 shows promising static security attributes in its current version, but its past security track record, particularly concerning XSS, warrants careful consideration and ongoing vigilance.

Key Concerns

  • History of 1 high severity CVE
  • History of 2 medium severity CVEs
  • Common vulnerability type: XSS
  • Unescaped output detected (11% of total)
  • File operation detected
Vulnerabilities
3

WP Lightbox 2 Security Vulnerabilities

CVEs by Year

1 CVE in 2023
2023
1 CVE in 2024
2024
1 CVE in 2025
2025
Patched Has unpatched

Severity Breakdown

High
1
Medium
2

3 total CVEs

CVE-2025-3745high · 7.2Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

WP Lightbox 2 <= 3.0.6.7 - Unauthenticated Stored Cross-Site Scripting

Jun 9, 2025 Patched in 3.0.6.8 (31d)
CVE-2024-6263medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

WP Lightbox 2 <= 3.0.6.6 - Authenticated (Contributor+) DOM-Based Stored Cross-Site Scripting

Jul 2, 2024 Patched in 3.0.6.7 (1d)
CVE-2023-45747medium · 5.5Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

WP Lightbox 2 <= 3.0.6.5 - Authenticated (Administrator+) Stored Cross-Site Scripting via plugin settings

Oct 12, 2023 Patched in 3.0.6.6 (151d)
Code Analysis
Analyzed Mar 16, 2026

WP Lightbox 2 Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
4
31 escaped
Nonce Checks
1
Capability Checks
2
File Operations
1
External Requests
0
Bundled Libraries
0

Output Escaping

89% escaped35 total outputs
Data Flows
All sanitized

Data Flow Analysis

2 flows
save_parametrs (admin\general_settings.php:32)
Source (user input) Sink (dangerous op) Sanitizer Transform Unsanitized Sanitized
Attack Surface

WP Lightbox 2 Attack Surface

Entry Points1
Unprotected0

AJAX Handlers 1

authwp_ajax_save_in_databese_lightbox2admin\general_settings.php:29
WordPress Hooks 9
actionplugins_loadedwp-lightbox-2.php:28
actionadmin_initwp-lightbox-2.php:38
actionwp_enqueue_scriptswp-lightbox-2.php:39
actionwp_enqueue_scriptswp-lightbox-2.php:40
filterthe_contentwp-lightbox-2.php:42
filtercomment_textwp-lightbox-2.php:46
actionadmin_menuwp-lightbox-2.php:375
actioninitwp-lightbox-2.php:387
actionadmin_headwp-lightbox-2.php:388
Maintenance & Trust

WP Lightbox 2 Maintenance & Trust

Maintenance Signals

WordPress version tested6.9.4
Last updatedJan 31, 2026
PHP min version
Downloads1.3M

Community Trust

Rating88/100
Number of ratings89
Active installs30K
Developer Profile

WP Lightbox 2 Developer Profile

Syed Balkhi

94 plugins · 23.5M total installs

73
trust score
Avg Security Score
91/100
Avg Patch Time
795 days
View full developer profile
Detection Fingerprints

How We Detect WP Lightbox 2

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/wp-lightbox-2/styles/lightbox.min.css/wp-content/plugins/wp-lightbox-2/styles/lightbox.min.{$locale}.css/wp-content/plugins/wp-lightbox-2/js/dist/wp-lightbox-2.min.js
Script Paths
js/dist/wp-lightbox-2.min.js
Version Parameters
wp-lightbox-2/style.css?ver=wp-lightbox-2/script.js?ver=

HTML / DOM Fingerprints

Data Attributes
rel="lightbox[
JS Globals
JQLBSettings
FAQ

Frequently Asked Questions about WP Lightbox 2