vulnerability

WordPress Plugin: photo-gallery: CVE-2022-4058: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Severity
6
CVSS
(AV:N/AC:M/Au:N/C:P/I:P/A:N)
Published
Nov 28, 2022
Added
May 15, 2025
Modified
Jul 10, 2025

Description

The Photo Gallery plugin for WordPress is vulnerable to Cross-Site Request Forgery in versions up to, and including, 1.8.2. This is due to missing or incorrect nonce validation one of its functions. This makes it possible for unauthenticated attackers to inject malicious JavaScript, that will execute whenever a user accesses a page under their control. This Cross-Site Scripting payload will trigger for that user only for the duration of their session.

Solution

photo-gallery-plugin-cve-2022-4058
Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.