# CVE-2022-0750: Photoswipe Masonry Gallery <= 1.2.14 Stored Cross-Site Scripting

- Severity: Medium 6.4 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.39%, higher than 91% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-23T19:46:50.000Z
- Modified: 2026-06-17T04:21:10.700Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: Wordfence

## Description

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.

(As written by CVE List.)

## Affected

- deanoakley Photoswipe Masonry Gallery: up to 1.2.14
- thriveweb photoswipe_masonry_gallery: before 1.2.15

## Every score

- Wordfence: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://www.wordfence.com/blog/2022/02/stored-cross-site-scripting-vulnerability-patched-in-a-wordpress-photo-gallery-plugin/> (exploit, third-party-advisory)
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/64624d4c-3ffb-4516-a938-0accde24c79f?source=cve> (third-party-advisory)
- <https://wordpress.org/plugins/photoswipe-masonry/> (product)

## Sources

- CVE List: [CVE-2022-0750](https://www.cve.org/CVERecord?id=CVE-2022-0750), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2022-0750](https://nvd.nist.gov/vuln/detail/CVE-2022-0750), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-0750 · Whole record: https://cve.day/CVE-2022-0750.json · Rebuilt by cve.day 2026-11-25T22:58:10.233Z
