Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-12522: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in yayforms Yay! Forms | Embed Custom Forms, Surveys, and Quizzes Easily

0
Medium
VulnerabilityCVE-2024-12522cvecve-2024-12522cwe-79
Published: Wed Feb 19 2025 (02/19/2025, 07:32:08 UTC)
Source: CVE Database V5
Vendor/Project: yayforms
Product: Yay! Forms | Embed Custom Forms, Surveys, and Quizzes Easily

Description

CVE-2024-12522 is a stored Cross-Site Scripting (XSS) vulnerability in the Yay! Forms WordPress plugin, affecting all versions up to 1. 2. 1. The flaw arises from improper input sanitization and output escaping of user-supplied attributes in the 'yayforms' shortcode. Authenticated users with contributor-level or higher privileges can inject malicious scripts that execute whenever any user views the compromised page. The vulnerability has a CVSS score of 6. 4 (medium severity), reflecting its moderate impact and ease of exploitation without user interaction. Although no known exploits are currently reported in the wild, the vulnerability poses risks to confidentiality and integrity of affected sites. Organizations using this plugin should prioritize patching or applying mitigations to prevent potential exploitation.

AI-Powered Analysis

AILast updated: 02/26/2026, 03:59:08 UTC

Technical Analysis

CVE-2024-12522 identifies a stored Cross-Site Scripting (XSS) vulnerability in the Yay! Forms WordPress plugin, which enables embedding custom forms, surveys, and quizzes. The vulnerability is due to improper neutralization of input during web page generation (CWE-79), specifically insufficient sanitization and escaping of user-supplied attributes within the 'yayforms' shortcode. This flaw allows authenticated attackers with contributor-level access or higher to inject arbitrary JavaScript code into pages. The injected scripts execute in the context of any user who views the affected page, potentially leading to session hijacking, privilege escalation, or data theft. The vulnerability affects all versions up to and including 1.2.1. The CVSS 3.1 base score is 6.4, indicating medium severity, with attack vector network, low attack complexity, privileges required at the contributor level, no user interaction needed, and a scope change. The impact primarily affects confidentiality and integrity, with no direct availability impact. No public exploits or patches are currently available, but the vulnerability is publicly disclosed and should be addressed promptly. The flaw highlights the importance of proper input validation and output encoding in WordPress plugins, especially those handling user-generated content.

Potential Impact

The vulnerability allows authenticated contributors or higher to inject malicious scripts that execute in the browsers of users visiting the compromised pages. This can lead to theft of session cookies, enabling attackers to impersonate users with potentially higher privileges, unauthorized data access, or manipulation of site content. The integrity of the website content can be compromised, and confidential information exposed. While availability is not directly impacted, successful exploitation can facilitate further attacks that degrade service or lead to site defacement. Organizations relying on Yay! Forms for customer engagement or data collection risk reputational damage and loss of user trust if exploited. The medium CVSS score reflects moderate risk, but the ease of exploitation by authenticated users and the potential for privilege escalation make it a significant concern for WordPress sites with multiple contributors.

Mitigation Recommendations

1. Immediately restrict contributor-level and higher privileges to trusted users only until a patch is available. 2. Monitor and audit user-generated content submitted via Yay! Forms for suspicious or unexpected scripts. 3. Implement Web Application Firewall (WAF) rules to detect and block common XSS payloads targeting the 'yayforms' shortcode. 4. Encourage users to update the plugin promptly once the vendor releases a patch addressing this vulnerability. 5. Employ Content Security Policy (CSP) headers to limit the execution of unauthorized scripts on affected pages. 6. Consider temporarily disabling or removing the Yay! Forms plugin if it is not critical to operations. 7. Educate contributors about the risks of injecting untrusted content and enforce strict input validation policies. 8. Use security plugins that scan for XSS vulnerabilities and malicious code injections in WordPress environments.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2024-12-11T13:51:58.893Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6e40b7ef31ef0b59bbaf

Added to database: 2/25/2026, 9:48:48 PM

Last enriched: 2/26/2026, 3:59:08 AM

Last updated: 2/26/2026, 8:46:44 AM

Views: 1

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats