CVE-2022-4058
WordPress vulnerability analysis and mitigation

Overview

The Photo Gallery by 10Web WordPress plugin before version 1.8.3 contains a stored Cross-Site Scripting (XSS) vulnerability via CSRF. The vulnerability was discovered and publicly disclosed on November 28, 2022, and was assigned CVE-2022-4058. The issue affects the WordPress plugin 'photo-gallery' and has been fixed in version 1.8.3 (WPScan).

Technical details

The vulnerability exists because the plugin does not properly validate and escape certain parameters before outputting them back in JavaScript code on another page. The vulnerability has been assigned a CVSS score of 5.4 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N. The issue is classified as CWE-79 (Cross-Site Scripting) (NVD, WPScan).

Impact

When successfully exploited, this vulnerability allows an attacker to execute a stored XSS attack when a logged-in administrator opens a malicious URL or page under the attacker's control. The XSS payload will only trigger for the attacked user and will be reset when they logout (WPScan).

Mitigation and workarounds

The vulnerability has been fixed in version 1.8.3 of the Photo Gallery plugin. Users are advised to update to this version or later to mitigate the risk (WPScan).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14977HIGH8.1
  • dokan-lite
NoYesJan 20, 2026
CVE-2025-14348MEDIUM5.3
  • wemail
NoYesJan 20, 2026
CVE-2026-1045MEDIUM4.4
  • viet-contact
NoNoJan 20, 2026
CVE-2026-1042MEDIUM4.4
  • wp-hello-bar
NoNoJan 20, 2026
CVE-2025-12573N/AN/A
  • bookingor
NoNoJan 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management