CVE-2025-5842

Modern Design Library <= 1.1.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via class Parameter

Published Jun 26, 2025 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Modern Design Library plugin for WordPress contains a stored cross‑site scripting flaw in the ‘class’ parameter up through version 1.1.4. Authenticated users with Contributor‑level access or higher can inject arbitrary scripts that will run whenever a user opens a page containing the injected content, leading to client‑side code execution and potential data theft or session hijacking.

Affected Systems

Any WordPress site running the Modern Design Library plugin provided by butterflymedia, at or below version 1.1.4, is affected. The vulnerability applies to all installations where contributors have permission to edit or add shortcodes that include the vulnerable ‘class’ parameter.

Risk and Exploitability

The CVSS score of 6.4 indicates a moderate severity, while the EPSS score of < 1% signals a low probability of exploitation in the wild. The vulnerability is not currently listed in the CISA KEV catalog. Attackers must be authenticated with at least Contributor rights; there are no additional prerequisites beyond the ability to edit or create shortcodes. Successful exploitation results in arbitrary script execution in the browsers of any site visitor who views the affected page, potentially compromising user sessions and data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Modern Design Library plugin to the latest version (1.1.5 or newer) that removes the vulnerability.
  • Identify and delete any scripts that have been injected via the class parameter in existing content before the upgrade.
  • Restrict Contributor‑level access to trusted users, or remove the ability to edit the class parameter if the role is not required to modify shortcodes.

Generated by OpenCVE AI on April 22, 2026 at 14:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-28690 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.
History
Type Values Removed Values Added
First Time appeared Getbutterfly
Getbutterfly modern Design Library
CPEs cpe:2.3:a:getbutterfly:modern_design_library:*:*:*:*:*:wordpress:*:*
Vendors & Products Getbutterfly
Getbutterfly modern Design Library
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Modern Design Library <= 1.1.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via class Parameter
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 8, 2026, 4:38 PM
Reserved
Jun 6, 2025, 9:28 PM
Status
Analyzed
Published
Jun 26, 2025, 10:15 AM
Modified
Jun 17, 2026, 9:48 AM