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-5842: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in butterflymedia Modern Design Library

0
Medium
VulnerabilityCVE-2025-5842cvecve-2025-5842cwe-79
Published: Thu Jun 26 2025 (06/26/2025, 09:22:02 UTC)
Source: CVE Database V5
Vendor/Project: butterflymedia
Product: Modern Design Library

Description

The Modern Design Library plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the ‘class’ parameter in all versions up to, and including, 1.1.4 due to insufficient input sanitization and output escaping. 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, 15:37:33 UTC

Technical Analysis

CVE-2025-5842 is a stored Cross-Site Scripting vulnerability identified in the Modern Design Library plugin for WordPress, developed by butterflymedia. The vulnerability exists due to improper neutralization of input during web page generation, specifically through the 'class' parameter. Versions up to and including 1.1.4 fail to adequately sanitize and escape this input, allowing authenticated users with Contributor-level permissions or higher to inject arbitrary JavaScript code into pages. Because this is a stored XSS, the malicious payload persists in the website's content and executes in the browsers of any users who visit the affected pages. The vulnerability leverages CWE-79, a common weakness related to improper input validation and output encoding. The CVSS v3.1 base score is 6.4, reflecting a medium severity with network attack vector, low attack complexity, and requiring privileges but no user interaction. The scope is changed, indicating that the vulnerability affects components beyond the initially vulnerable plugin, potentially impacting the broader WordPress environment. Although no public exploits have been reported, the risk remains significant due to the widespread use of WordPress and the plugin’s role in page design. Attackers could use this vulnerability to steal session cookies, deface websites, or perform actions on behalf of other users, undermining confidentiality and integrity. The absence of patches at the time of publication necessitates immediate attention to mitigation strategies.

Potential Impact

The impact of CVE-2025-5842 on organizations worldwide can be substantial, especially for those relying on the Modern Design Library plugin for WordPress-based websites. Successful exploitation allows attackers to execute arbitrary scripts in the context of the affected website, potentially leading to session hijacking, theft of sensitive user data, unauthorized actions performed with victim user privileges, and website defacement. Since the vulnerability requires authenticated access at Contributor level or above, insider threats or compromised accounts pose a significant risk. The persistent nature of stored XSS means that any user visiting the infected page is exposed, increasing the attack surface. This can damage organizational reputation, lead to data breaches, and disrupt business operations. E-commerce, media, and service providers using this plugin are particularly vulnerable to customer data exposure and trust erosion. Additionally, the vulnerability could be leveraged as a foothold for further attacks within the network or to distribute malware. The medium CVSS score reflects moderate risk, but the real-world impact depends on the attacker’s ability to gain contributor-level access and the website’s user base size.

Mitigation Recommendations

To mitigate CVE-2025-5842 effectively, organizations should first verify if they use the Modern Design Library plugin and identify the installed version. Since no official patch is currently available, immediate mitigation steps include: 1) Restrict Contributor-level and higher privileges strictly to trusted users to reduce the risk of malicious script injection. 2) Implement Web Application Firewall (WAF) rules to detect and block suspicious payloads targeting the 'class' parameter or typical XSS patterns in HTTP requests. 3) Employ Content Security Policy (CSP) headers to limit the execution of unauthorized scripts on affected pages. 4) Conduct thorough input validation and output encoding in any custom code interacting with the plugin or its parameters. 5) Monitor website content regularly for unexpected script injections or anomalies. 6) Educate content contributors about the risks of injecting untrusted code or HTML. 7) Plan for an urgent update or patch deployment once the vendor releases a fix. 8) Consider temporarily disabling or replacing the plugin if feasible until a secure version is available. These targeted actions go beyond generic advice by focusing on privilege management, proactive detection, and containment strategies tailored to this vulnerability’s characteristics.

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-06-06T21:28:26.290Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 685d144eca1063fb87407994

Added to database: 6/26/2025, 9:35:10 AM

Last enriched: 2/27/2026, 3:37:33 PM

Last updated: 3/25/2026, 11:02:27 PM

Views: 124

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