Skip to main content
Vulnerability Database/CVE-2025-22664

CVE-2025-22664: Ays-pro Survey Maker XSS Vulnerability

CVE-2025-22664 is a stored XSS vulnerability in Ays Pro Survey Maker that enables attackers to inject malicious scripts into web pages. This article covers the technical details, affected versions up to 5.1.3.5, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-22664 Overview

CVE-2025-22664 is a stored Cross-Site Scripting (XSS) vulnerability in the Ays Pro Survey Maker plugin for WordPress. The flaw stems from improper neutralization of user input during web page generation [CWE-79]. It affects all versions of survey-maker from unspecified initial release through 5.1.3.5. An authenticated attacker with high privileges can inject persistent JavaScript payloads that execute in the browser of any user viewing the affected page. The scope-changed nature of the flaw means the injected script executes in a security context different from the vulnerable component.

Critical Impact

Authenticated attackers can inject persistent JavaScript into survey content, enabling session theft, defacement, and delivery of secondary payloads to site visitors and administrators.

Affected Products

  • Ays Pro Survey Maker WordPress plugin, versions through 5.1.3.5
  • WordPress sites running the vulnerable survey-maker plugin
  • Any administrator or visitor rendering survey content generated by the plugin

Discovery Timeline

  • 2025-02-04 - CVE-2025-22664 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-22664

Vulnerability Analysis

The vulnerability is a stored XSS flaw in the Survey Maker plugin for WordPress. Stored XSS occurs when user-supplied input is written to persistent storage and later rendered to other users without adequate encoding or sanitization. In this case, input handled by the plugin's survey configuration or content fields is stored in the WordPress database and returned in HTML responses without proper output escaping.

Exploitation requires an authenticated actor with elevated privileges and some user interaction, according to the published CVSS vector. The attack traverses a network vector and results in low confidentiality and integrity impact within a changed scope, meaning the injected script executes outside the plugin's original security boundary. The Ays-pro survey-maker project is affected in all releases up to and including 5.1.3.5.

Root Cause

The root cause is missing or insufficient output encoding when the plugin renders stored survey data into HTML pages. Values written by privileged users are trusted at render time, allowing HTML and script tags supplied at input to be interpreted by the browser. The absence of contextual escaping, such as esc_html(), esc_attr(), or wp_kses() in WordPress, permits arbitrary markup to persist and execute on subsequent page loads.

Attack Vector

An authenticated attacker with high privileges submits a crafted payload through a survey field or configuration option processed by the plugin. The payload is stored in the WordPress database. When another user, including an administrator, loads the affected survey page, the browser parses and executes the attacker-controlled script in the site's origin. Because the CVSS scope is changed, the attacker can pivot into contexts beyond the plugin, such as the WordPress admin interface, to hijack sessions, escalate access, or redirect visitors.

For technical specifics, see the Patchstack XSS Vulnerability Report.

Detection Methods for CVE-2025-22664

Indicators of Compromise

  • Survey records containing HTML tags such as <script>, <img onerror=>, or <svg onload=> in title, question, or answer fields.
  • Unexpected outbound requests from administrator browsers to attacker-controlled domains after loading survey pages.
  • New or modified WordPress administrator accounts created shortly after a privileged user viewed a survey.
  • Session cookies for wp-admin observed leaving the environment through unexpected referrers.

Detection Strategies

  • Query the WordPress database tables used by the survey-maker plugin for entries containing angle brackets, javascript: URIs, or event handler attributes.
  • Deploy a Web Application Firewall (WAF) rule that flags stored HTML or script content submitted to plugin endpoints.
  • Monitor server access logs for POST requests to Survey Maker administrative endpoints from accounts that do not routinely author surveys.

Monitoring Recommendations

  • Enable Content Security Policy (CSP) reporting to capture inline script violations originating from survey pages.
  • Alert on browser telemetry showing DOM writes from plugin-rendered content to sensitive form fields or document.cookie.
  • Track plugin version inventory across WordPress estates and generate alerts for any host still running survey-maker at or below 5.1.3.5.

How to Mitigate CVE-2025-22664

Immediate Actions Required

  • Update the Ays Pro Survey Maker plugin to a version released after 5.1.3.5 as soon as the vendor publishes a patched build.
  • Audit all existing survey content for stored HTML or JavaScript payloads and remove suspicious entries.
  • Rotate credentials and force reauthentication for WordPress administrator accounts that accessed surveys during the exposure window.
  • Restrict the manage_options and survey-editing capabilities to a minimum set of trusted users.

Patch Information

No fixed version is listed in the NVD entry at time of publication. Consult the Patchstack advisory and the WordPress plugin repository for the latest release notes. Apply the vendor-supplied update to any installation running survey-maker version 5.1.3.5 or earlier.

Workarounds

  • Deactivate the survey-maker plugin until a patched version is installed and validated.
  • Enforce a strict Content Security Policy that disallows inline scripts to reduce the impact of stored payloads.
  • Deploy WAF signatures that inspect POST bodies destined for plugin endpoints and block HTML tags in survey fields.
  • Limit high-privileged access to trusted administrators and require multi-factor authentication for the WordPress admin interface.
bash
# Example: disable the vulnerable plugin via WP-CLI until patched
wp plugin deactivate survey-maker
wp plugin status survey-maker

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.