CVE-2026-135654
7.2HighPublished Nov 26, 2026 · NVD status: Deferred · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User action
- None
- Impact
- Limited impact
- Weakness
- CWE-79
What an attacker gets
Unauthenticated attackers can inject malicious scripts into your site that execute in the browsers of visitors. This requires an administrator to approve the initial comment containing the payload.
Root cause
The plugin fails to properly sanitize input or escape output for the comment parameter.
Affected versions
Lightbox with PhotoSwipe plugin up to and including version 5.18.0
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Fix & remediation
Update the Lightbox with PhotoSwipe plugin to the latest available version. If an update is unavailable, disable comment functionality on posts where the lightbox is active.
AI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
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.
References
- https://codeberg.org/askaaron/lightbox-photoswipe/commit/fc2711dc1249f406e9b06b38d2c6d398f7a65b3b#diff-7ae795295766dd4e11418cfc268b53e6b42311e0
- https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/dynamic-caption/photoswipe-dynamic-caption-plugin.esm.js#L247
- https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/frontend.js#L126
- https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/assets/ps5/frontend.js#L206
- https://plugins.trac.wordpress.org/browser/lightbox-photoswipe/tags/5.17.0/src/LightboxPhotoSwipe/LightboxPhotoSwipe.php#L700
- https://plugins.trac.wordpress.org/changeset/3795514/lightbox-photoswipe/trunk/assets/ps5/frontend.js
- https://www.wordfence.com/threat-intel/vulnerabilities/id/96543e4a-174f-4a97-af81-66f7ff0848ba?source=cve
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-973457.5HighUnauthenticated attackers can enumerate order IDs to harvest secret order keys. This allows them to access customer PII including names, emails, and billing addresses.
- CVE-2026-854167.2HighUnauthenticated attackers can inject malicious scripts into admin pages via public form submissions. These scripts execute in the browser of any administrator who views the injected leads.
- CVE-2026-854127.2HighUnauthenticated attackers can inject malicious scripts into your site that execute in a user's browser. They can obtain the required form nonce via an unprotected REST endpoint without needing any credentials.
- CVE-2026-760758.8HighAuthenticated attackers can achieve remote code execution by uploading and activating malicious plugins. This requires at least Subscriber-level access to the WordPress site.
- CVE-2026-1375568.8HighAuthenticated users with stacks:edit permissions can achieve remote code execution as root. They do this by sending a crafted path to the API to overwrite system files.
- CVE-2026-1375527.5HighRemote attackers can bypass two-factor authentication and forced password resets to gain full-access tokens. They need a user's valid username and password to exploit this.