Photoswipe Masonry Gallery <= 1.2.14 Stored Cross-Site Scripting

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2022-0750
CVSS 6.4 (Medium)
Publicly Published February 24, 2022
Last Updated October 20, 2023
Researcher Chloe Chamberland - Wordfence


The Photoswipe Masonry Gallery WordPress plugin is vulnerable to Cross-Site Scripting due to insufficient escaping and sanitization of the thumbnail_width, thumbnail_height, max_image_width, and max_image_height parameters found in the ~/photoswipe-masonry.php file which allows authenticated attackers to inject arbitrary web scripts into galleries created by the plugin and on the PhotoSwipe Options page. This affects versions up to and including 1.2.14.



Vulnerability Details for Photoswipe Masonry Gallery

Software Type Plugin
Software Slug photoswipe-masonry (view on
Patched? Yes
Remediation Update to version 1.2.15, or a newer patched version
Affected Version
  • <= 1.2.14
Patched Version
  • 1.2.15

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.