Photoswipe Masonry Gallery Security & Risk Analysis

wordpress.org/plugins/photoswipe-masonry

PhotoSwipe Masonry takes advantage of the built in gallery features of WordPress. The gallery is built using PhotoSwipe from Dmitry Semenov.

7K active installs v1.2.32 PHP + WP 6.0+ Updated Feb 19, 2026
galleryimage-galleryphotoalbumphotoswipewebsite-gallery
100
A · Safe
CVEs total1
Unpatched0
Last CVEFeb 24, 2022
Safety Verdict

Is Photoswipe Masonry Gallery Safe to Use in 2026?

Generally Safe

Score 100/100

Photoswipe Masonry Gallery has a strong security track record. Known vulnerabilities have been patched promptly.

1 known CVELast CVE: Feb 24, 2022Updated 1mo ago
Risk Assessment

The photoswipe-masonry plugin version 1.2.32 demonstrates a generally strong security posture based on the static analysis provided. The absence of dangerous functions, SQL queries utilizing prepared statements, and the minimal attack surface with no directly unprotected entry points are all positive indicators. The plugin also appears to implement basic security checks with nonce and capability checks for its identified entry points.

However, there are some areas for concern. While the output escaping is predominantly good, a small percentage of outputs are not properly escaped, which could potentially lead to cross-site scripting vulnerabilities if these unescaped outputs are controlled by user input. The plugin's vulnerability history, specifically a medium severity Cross-Site Scripting (XSS) vulnerability discovered in February 2022, warrants attention. Although this specific vulnerability is reported as currently unpatched, the fact that it's not critical or high severity and the plugin has no currently unpatched CVEs suggests that developers have addressed past issues or that the existing vulnerability is not severe enough to warrant immediate blocking of the plugin. The lack of taint analysis data makes it difficult to assess the risk of complex data flow vulnerabilities, but the absence of critical and high severity flows is reassuring.

In conclusion, photoswipe-masonry v1.2.32 is a reasonably secure plugin, with good development practices evident in its SQL handling and limited attack surface. The primary areas to monitor are the small percentage of unescaped output and the historical XSS vulnerability. Users should ensure they are on the latest available version of the plugin to benefit from any potential fixes and maintain a secure WordPress environment.

Key Concerns

  • Unescaped output detected
  • Historical medium severity XSS vulnerability
Vulnerabilities
1

Photoswipe Masonry Gallery Security Vulnerabilities

CVEs by Year

1 CVE in 2022
2022
Patched Has unpatched

Severity Breakdown

Medium
1

1 total CVE

CVE-2022-0750medium · 6.4Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Photoswipe Masonry Gallery <= 1.2.14 Stored Cross-Site Scripting

Feb 24, 2022 Patched in 1.2.15 (698d)
Code Analysis
Analyzed Mar 16, 2026

Photoswipe Masonry Gallery Code Analysis

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

SQL Query Safety

100% prepared2 total queries

Output Escaping

86% escaped7 total outputs
Attack Surface

Photoswipe Masonry Gallery Attack Surface

Entry Points2
Unprotected0

Shortcodes 2

[gallery] photoswipe-masonry.php:76
[photoswipe] photoswipe-masonry.php:77
WordPress Hooks 11
actioninitphotoswipe-masonry.php:68
actioninitphotoswipe-masonry.php:69
actionadmin_menuphotoswipe-masonry.php:70
actionadmin_headphotoswipe-masonry.php:71
actionwp_enqueue_scriptsphotoswipe-masonry.php:72
actionwp_footerphotoswipe-masonry.php:73
actionadmin_post_update_settingsphotoswipe-masonry.php:74
filterwp_get_attachment_linkphotoswipe-masonry.php:75
actionsave_postphotoswipe-masonry.php:78
actionpost_updatedphotoswipe-masonry.php:80
actionsave_postphotoswipe-masonry.php:425
Maintenance & Trust

Photoswipe Masonry Gallery Maintenance & Trust

Maintenance Signals

WordPress version tested6.4.8
Last updatedFeb 19, 2026
PHP min version
Downloads172K

Community Trust

Rating90/100
Number of ratings46
Active installs7K
Developer Profile

Photoswipe Masonry Gallery Developer Profile

THRIVE - Web Design Gold Coast

7 plugins · 12K total installs

71
trust score
Avg Security Score
88/100
Avg Patch Time
735 days
View full developer profile
Detection Fingerprints

How We Detect Photoswipe Masonry Gallery

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

Asset Fingerprints

Asset Paths
/wp-content/plugins/photoswipe-masonry/admin.css/wp-content/plugins/photoswipe-masonry/photoswipe-masonry-inline.css
Script Paths
/wp-content/plugins/photoswipe-masonry/photoswipe-dist/photoswipe.min.js/wp-content/plugins/photoswipe-masonry/photoswipe-dist/photoswipe-ui-default.min.js/wp-content/plugins/photoswipe-masonry/photoswipe-masonry.js
Version Parameters
photoswipe-masonry/photoswipe-masonry.php?ver=photoswipe-masonry/photoswipe-masonry-inline.css?ver=photoswipe-masonry/photoswipe-dist/photoswipe.css?ver=photoswipe-masonry/photoswipe-dist/white-skin/skin.css?ver=photoswipe-masonry/photoswipe-dist/default-skin/default-skin.css?ver=photoswipe-masonry/photoswipe-dist/photoswipe.min.js?ver=photoswipe-masonry/photoswipe-dist/photoswipe-ui-default.min.js?ver=photoswipe-masonry/photoswipe-masonry.js?ver=

HTML / DOM Fingerprints

CSS Classes
ps_borderfl_boxphotoswipe_admin
HTML Comments
<!-- Skin CSS file (optional) --><!-- In folder of skin CSS file there are also:--><!-- - .png and .svg icons sprite,+4 more
Data Attributes
data-size
JS Globals
PhotoSwipe
Shortcode Output
[gallery[photoswipe
FAQ

Frequently Asked Questions about Photoswipe Masonry Gallery