CVE-2022-4301
WordPress vulnerability analysis and mitigation

Overview

The vulnerability CVE-2022-4301 affects the Sunshine Photo Cart WordPress plugin versions before 2.9.15. The vulnerability was discovered and reported on December 14, 2022, and publicly disclosed on December 15, 2022. The issue stems from the plugin's failure to properly sanitize and escape a parameter before outputting it back in the page (WPScan).

Technical details

This vulnerability is classified as a Reflected Cross-Site Scripting (XSS) issue, identified as CWE-79. It has been assigned a CVSS score of 7.5 (High), indicating significant severity. The vulnerability exists in the user registration functionality where an unsanitized parameter can be exploited through the registration URL. The technical implementation flaw allows for the injection of malicious JavaScript code through the redirect_to parameter (WPScan).

Impact

The vulnerability allows unauthenticated attackers to execute arbitrary JavaScript code in the context of other users' browsers who visit the specially crafted URL. This could potentially lead to session hijacking, credential theft, or other client-side attacks against users of the affected WordPress installations (WPScan).

Mitigation and workarounds

The vulnerability has been fixed in version 2.9.15 of the Sunshine Photo Cart plugin. Site administrators are strongly advised to update to this version or later to mitigate the risk. If immediate updating is not possible, disabling user registration could serve as a temporary workaround (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-14030MEDIUM6.4
  • ai-feeds
NoYesDec 12, 2025
CVE-2025-12965MEDIUM6.4
  • magical-posts-display
NoYesDec 12, 2025
CVE-2025-14442MEDIUM5.3
  • secure-copy-content-protection
NoYesDec 12, 2025
CVE-2025-14065MEDIUM5.3
  • simple-bike-rental
NoYesDec 12, 2025
CVE-2025-14159MEDIUM4.3
  • secure-copy-content-protection
NoYesDec 12, 2025

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