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-2025-4221: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in baswaniyash Animated Buttons

0
Medium
VulnerabilityCVE-2025-4221cvecve-2025-4221cwe-79
Published: Wed May 21 2025 (05/21/2025, 09:21:52 UTC)
Source: CVE
Vendor/Project: baswaniyash
Product: Animated Buttons

Description

The Animated Buttons plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'auto-downloader' shortcode in all versions up to, and including, 1.0.0 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 14:24:01 UTC

Technical Analysis

CVE-2025-4221 is a stored Cross-Site Scripting (XSS) vulnerability classified under CWE-79, found in the Animated Buttons WordPress plugin developed by baswaniyash. The vulnerability exists in all versions up to and including 1.0.0, specifically within the 'auto-downloader' shortcode functionality. The root cause is insufficient sanitization and escaping of user-supplied attributes, which allows authenticated users with contributor-level permissions or higher to inject arbitrary JavaScript code into pages. This malicious code is stored persistently and executed in the context of any user who views the infected page, potentially compromising user sessions, stealing cookies, or performing unauthorized actions on behalf of the victim. The vulnerability requires no user interaction beyond viewing the page but does require the attacker to have authenticated access with contributor or higher privileges, limiting exploitation to insiders or compromised accounts. The CVSS v3.1 base score is 6.4, reflecting a medium severity with network attack vector, low attack complexity, and privileges required. The vulnerability impacts confidentiality and integrity but not availability. No patches or official fixes are currently linked, and no known exploits have been reported in the wild as of the publication date. The vulnerability was reserved on May 2, 2025, and published on May 21, 2025.

Potential Impact

The primary impact of CVE-2025-4221 is the potential compromise of user confidentiality and integrity on WordPress sites using the vulnerable Animated Buttons plugin. Attackers with contributor-level access can inject persistent malicious scripts that execute in the browsers of site visitors and administrators, leading to session hijacking, credential theft, or unauthorized actions such as content manipulation or privilege escalation. This can undermine trust in the affected websites, lead to data breaches, and facilitate further attacks such as phishing or malware distribution. Since the vulnerability requires authenticated access, the risk is higher in environments with weak account controls or where contributor accounts are shared or compromised. The scope includes all WordPress sites using the plugin, which may be small to moderate in number but could include high-value targets. The vulnerability does not affect availability directly but can degrade site integrity and user trust significantly.

Mitigation Recommendations

To mitigate CVE-2025-4221, organizations should immediately audit their WordPress installations for the presence of the Animated Buttons plugin and restrict contributor-level access to trusted users only. Since no official patch is currently available, administrators should consider disabling or uninstalling the plugin until a fix is released. Implementing a Web Application Firewall (WAF) with rules to detect and block malicious script injections in shortcode attributes can provide temporary protection. Additionally, enforcing strong authentication policies, including multi-factor authentication for all users with contributor or higher privileges, reduces the risk of account compromise. Regularly monitoring logs for unusual shortcode usage or content changes can help detect exploitation attempts. Finally, site owners should sanitize and escape all user inputs in custom shortcodes and plugins to prevent similar vulnerabilities in the future.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2025-05-02T13:03:56.183Z
Cisa Enriched
false
Cvss Version
3.1
State
PUBLISHED

Threat ID: 682d9f07c4522896dcbf994e

Added to database: 5/21/2025, 9:38:15 AM

Last enriched: 2/27/2026, 2:24:01 PM

Last updated: 3/24/2026, 4:19:59 PM

Views: 52

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 for AI refresh and higher limits.

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

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses