CVE-2025-13621
WordPress vulnerability analysis and mitigation

Overview

CVE-2025-13621 is a Cross-Site Request Forgery (CSRF) vulnerability in the Dream Gallery plugin for WordPress, affecting all versions up to and including 1.0. The flaw allows unauthenticated attackers to update plugin settings and inject malicious web scripts by tricking a site administrator into clicking a crafted link. It was published on December 5, 2025, and assigned by Wordfence. The vulnerability carries a CVSS v3.1 base score of 6.1 (Medium) (Wordfence, Red Hat CVE).

Technical details

The root cause is missing or incorrect nonce validation on the dreampluginsmain AJAX action handler, classified as CWE-352 (Cross-Site Request Forgery). Because WordPress nonces are not properly verified before processing the AJAX request, an attacker can craft a forged HTTP request that, when executed in the context of an authenticated administrator's browser session, updates plugin settings or injects arbitrary JavaScript into the site's front-end output. The vulnerable code paths are located in dreamgallery.php (lines 254 and 257) and templates/front.php (line 38) (Wordfence, WordPress Trac).

Impact

Successful exploitation allows an attacker to modify the Dream Gallery plugin's settings and inject persistent malicious scripts (Stored XSS via CSRF) into the WordPress site, affecting visitors who load pages containing the gallery. The confidentiality and integrity impacts are low — limited to script injection and settings manipulation — with no direct availability impact. However, injected scripts could be used to steal session cookies, redirect users to phishing pages, or serve malware to site visitors (Wordfence, ENISA EUVD).

Exploitability

No public exploit code or active in-the-wild exploitation has been reported for CVE-2025-13621. The EPSS score is approximately 0.013% (0.000130), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires social engineering — the attacker must trick a logged-in WordPress administrator into clicking a malicious link or visiting a crafted page (Wordfence).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running the Dream Gallery plugin (version ≤ 1.0) via passive enumeration (e.g., searching for /wp-content/plugins/dream-gallery/ in site source or using tools like WPScan).
  2. Craft malicious request: Construct a forged HTTP POST request targeting the WordPress AJAX endpoint (/wp-admin/admin-ajax.php) with the action=dreampluginsmain parameter and a malicious payload (e.g., injecting a <script> tag into a plugin settings field).
  3. Embed in attack vector: Host the forged request in a hidden HTML form or <img> tag on an attacker-controlled page, or embed it in a phishing email link that auto-submits on page load.
  4. Social engineer the administrator: Trick a logged-in WordPress site administrator into visiting the attacker's page (e.g., via a phishing email or malicious comment link), causing their browser to automatically submit the forged request with their authenticated session cookies.
  5. Achieve persistent XSS: The AJAX handler processes the request without nonce validation, updating plugin settings with the injected script, which is then rendered to all visitors of pages containing the Dream Gallery plugin (Wordfence, WordPress Trac).

Indicators of compromise

  • Logs: WordPress access logs showing unexpected POST requests to /wp-admin/admin-ajax.php with action=dreampluginsmain from unusual IP addresses or referrers not matching the site's own admin panel.
  • File System: Unexpected or modified plugin settings stored in the WordPress database (wp_options table) containing <script> tags or encoded JavaScript payloads associated with the Dream Gallery plugin.
  • Network: Outbound connections from the WordPress server or visitor browsers to unknown external domains following page loads that include the Dream Gallery plugin output.
  • Browser/User Reports: Site visitors reporting unexpected redirects, pop-ups, or browser security warnings when viewing pages with the Dream Gallery plugin.

Mitigation and workarounds

The primary remediation is to update the Dream Gallery plugin to a version beyond 1.0 that includes proper nonce validation on the dreampluginsmain AJAX action. If no patched version is available from the vendor (teamdream), administrators should deactivate and remove the plugin immediately. As a general hardening measure, restrict access to /wp-admin/admin-ajax.php where possible and implement a Web Application Firewall (WAF) rule to block forged AJAX requests lacking valid nonces (Wordfence).

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-2024-13784CRITICAL9.8
  • arforms-form-builder
NoYesAug 16, 2026
CVE-2026-65640HIGH8.8
  • wordpress
NoYesAug 17, 2026
CVE-2026-11801HIGH7.5
  • wpadverts
NoYesAug 18, 2026
CVE-2026-13700MEDIUM5.9
  • wooms
NoNoAug 17, 2026
CVE-2026-14832MEDIUM5.3
  • shopsmart-loyalty-for-woocommerce
NoNoAug 17, 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