Skip to content
Laskyr

Plugins · lightbox-photoswipe · data as of 2026-11-29

Is Lightbox with PhotoSwipe safe? Known vulnerabilities and latest version

No known unpatched vulnerabilities in the latest version (5.25.0)

As of 2026-11-29. 4 issues are on record for older versions; version 5.19.0 or newer fixes all of them that state a fix.

Latest version
5.25.0
Last updated
2026-11-26
Active installs
20,000+
Known issues on record
4
Unpatched in latest
0
Tested up to WP
7.1.5

Integration of PhotoSwipe (http://photoswipe.com) for WordPress. — by Arno Welzel

What to do

  1. Update to the latest version (5.25.0). Anything older than 5.19.0 has at least one known issue listed below. Dashboard → Updates, or Plugins → “update now”.
  2. If you cannot update right away, deactivate it until you can.
  3. Turn on auto-updates for it: Plugins → “Enable auto-updates” on its row.
  4. If you ran a vulnerable version and something looks off (spam pages, strange admins, redirects), run the free scan. Already hacked? We clean it for a flat $499 with a 30-day reinfection guarantee.

With WP-CLI: wp plugin get lightbox-photoswipe --field=version shows what you run; wp plugin update lightbox-photoswipe updates it.

Check your version

Running more than one plugin? Paste your whole plugin list and check them all at once.

Known vulnerabilities

4 on record, newest first. Versions come from the source; * marks the first wordpress.org release after the last affected version.

high 7.2 CVE-2026-135654 · published 2026-11-26

Stored cross-site scripting (XSS) in Lightbox with PhotoSwipe (5.18.0 and older)

Affected
5.18.0 and older
Fixed in
5.19.0 *
Access needed (per CVSS)
No login needed
Range from
CVE record · score by Wordfence
Details from the advisory

The Lightbox with PhotoSwipe plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 5.18.0 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Successful exploitation requires an administrator to approve the attacker's comment at least once, which is the default WordPress behavior for first-time commenters; after that initial approval, no further administrative action is needed and the payload fires for any visitor who opens the lightbox on the affected post.

NVD CVE-2026-135654Wordfence advisoryCode change (fix)codeberg.orgPlugin source

high 7.5 CVE-2026-125695 · published 2026-11-20

Stored cross-site scripting (XSS) in Lightbox with PhotoSwipe (older than 5.19.0)

Affected
older than 5.19.0
Fixed in
5.19.0
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record · score by CISA ADP
Details from the advisory

The Lightbox with PhotoSwipe WordPress plugin before 5.19.0 does not escape image link URLs before outputting them in the attributes of the lightbox share menu, allowing unauthenticated users to perform Stored Cross-Site Scripting attacks via comments when the PhotoSwipe 4 frontend is used.

NVD CVE-2026-125695WPScan advisory

high 7.5 CVE-2026-124649 · published 2026-11-14

Stored cross-site scripting (XSS) in Lightbox with PhotoSwipe (older than 5.19.0)

Affected
older than 5.19.0
Fixed in
5.19.0
Access needed (per CVSS)
No login needed; someone on the site has to click a link or open a page
Range from
CVE record · score by CISA ADP
Details from the advisory

The Lightbox with PhotoSwipe WordPress plugin before 5.19.0 does not properly sanitise link titles and other caption sources before inserting them as HTML into the image lightbox caption, allowing unauthenticated users to perform Stored Cross-Site Scripting attacks via comments.

NVD CVE-2026-124649WPScan advisory

medium 6.8 CVE-2026-14833 · published 2026-07-31

Cross-site scripting (XSS) in Lightbox with PhotoSwipe (older than 5.9.0)

Affected
older than 5.9.0
Fixed in
5.9.0
Access needed (per CVSS)
Needs an admin-level account; someone on the site has to click a link or open a page
Range from
CVE record · score by CISA ADP
Details from the advisory

The Lightbox with PhotoSwipe WordPress plugin before 5.9.0 does not sanitise or escape a link data attribute before rendering it into the image lightbox caption in the browser, allowing users with author-level access and above (who lack the unfiltered_html capability) to store JavaScript that runs when a visitor or administrator opens the lightbox.

NVD CVE-2026-14833WPScan advisory

Recent activity

Browse vulnerabilities

Questions about Lightbox with PhotoSwipe

Is Lightbox with PhotoSwipe safe to use?

No known unpatched vulnerabilities in the latest version (5.25.0). As of 2026-11-29. 4 issues are on record for older versions; version 5.19.0 or newer fixes all of them that state a fix. Laskyr does not give safety verdicts. Keep Lightbox with PhotoSwipe on the latest version (5.25.0) and remove it if you do not use it.

Which versions of Lightbox with PhotoSwipe are vulnerable?

Known issues on record (newest first): Stored cross-site scripting (XSS) (5.18.0 and older, fixed in 5.19.0); Stored cross-site scripting (XSS) (older than 5.19.0, fixed in 5.19.0); Cross-site scripting (XSS) (older than 5.9.0, fixed in 5.9.0). The full list with sources is on this page.

What is the latest version of Lightbox with PhotoSwipe?

5.25.0, according to wordpress.org (last updated 2026-11-26). It has 20,000+ active installs.

What should I do if my Lightbox with PhotoSwipe is out of date?

Take a backup, then update it from Dashboard > Updates (or run wp plugin update lightbox-photoswipe). If you cannot update right away, deactivate it until you can. If you think the site was already attacked, run a free scan at https://laskyr.com/scan.

Where this data comes from

Badge for your site or docs (states facts with a date, not a verdict):
Lightbox with PhotoSwipe vulnerability status badge
<a href="https://laskyr.com/plugins/lightbox-photoswipe"><img src="https://laskyr.com/plugins/lightbox-photoswipe/badge.svg" alt="Lightbox with PhotoSwipe vulnerability status"></a>

← Check another plugin · Free hacked-site scan

First hour checklist

If the site was just hacked, read the emergency kit before you delete files. The page is free. Email is optional.

Read the emergency kit

The box is optional and does not affect the kit. Privacy policy.