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-13674: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in berginformatik Cosmic Blocks (40+) Content Editor Blocks Collection

0
Medium
VulnerabilityCVE-2024-13674cvecve-2024-13674cwe-79
Published: Wed Feb 19 2025 (02/19/2025, 07:32:09 UTC)
Source: CVE Database V5
Vendor/Project: berginformatik
Product: Cosmic Blocks (40+) Content Editor Blocks Collection

Description

CVE-2024-13674 is a stored cross-site scripting (XSS) vulnerability in the Cosmic Blocks (40+) Content Editor Blocks Collection WordPress plugin, affecting all versions up to 1. 3. 0. The flaw exists in the 'cwp_social_share' shortcode due to insufficient input sanitization and output escaping of user-supplied attributes. Authenticated users with contributor-level access or higher can inject malicious scripts that execute whenever any user views the compromised page. This vulnerability can lead to partial confidentiality and integrity loss but does not impact availability. Exploitation requires authentication but no user interaction beyond visiting the infected page. The CVSS score is 6. 4 (medium severity), reflecting the moderate risk posed by this vulnerability. No known exploits are currently reported in the wild.

AI-Powered Analysis

AILast updated: 02/25/2026, 22:59:40 UTC

Technical Analysis

CVE-2024-13674 is a stored cross-site scripting vulnerability identified in the Cosmic Blocks (40+) Content Editor Blocks Collection plugin for WordPress, specifically affecting all versions up to and including 1.3.0. The vulnerability arises from improper neutralization of input during web page generation (CWE-79), where the plugin's 'cwp_social_share' shortcode fails to adequately sanitize and escape user-supplied attributes. This flaw allows authenticated attackers with contributor-level privileges or higher to inject arbitrary JavaScript code into pages. When other users access these compromised pages, the injected scripts execute in their browsers, potentially leading to session hijacking, privilege escalation, or unauthorized actions performed on behalf of the victim. The vulnerability requires no user interaction beyond viewing the infected page but does require the attacker to have at least contributor-level access, which is a moderate barrier to exploitation. The CVSS v3.1 base score of 6.4 reflects a medium severity, with the vector indicating network attack vector, low attack complexity, privileges required, no user interaction, and a scope change. Although no known exploits have been reported in the wild, the vulnerability poses a significant risk to WordPress sites using this plugin, especially those that allow contributor-level users to add or edit content. The absence of official patches at the time of reporting necessitates immediate mitigation efforts by administrators.

Potential Impact

The primary impact of CVE-2024-13674 is the potential compromise of user confidentiality and integrity on affected WordPress sites. Attackers with contributor-level access can inject malicious scripts that execute in the context of other users' browsers, enabling theft of session cookies, credentials, or other sensitive information. This can lead to account takeover, unauthorized content modification, or further exploitation within the site. Although availability is not directly affected, the reputational damage and trust erosion from such attacks can be significant. Organizations relying on this plugin for content editing are at risk of internal threat actors or compromised contributor accounts exploiting this vulnerability. The scope includes all sites running vulnerable versions of the Cosmic Blocks plugin, which may be widespread given the popularity of WordPress and content editor blocks. The requirement for authentication limits remote anonymous exploitation but does not eliminate risk, especially in environments with many contributors or weak access controls.

Mitigation Recommendations

To mitigate CVE-2024-13674, organizations should immediately upgrade the Cosmic Blocks (40+) Content Editor Blocks Collection plugin to a patched version once available. In the absence of an official patch, administrators should restrict contributor-level access to trusted users only and audit existing contributor accounts for suspicious activity. Implementing a Web Application Firewall (WAF) with rules to detect and block malicious script injections targeting the 'cwp_social_share' shortcode can provide temporary protection. Site owners should also enforce strict input validation and output encoding on user-generated content where possible. Regularly scanning the website for injected scripts and monitoring logs for unusual behavior can help detect exploitation attempts. Additionally, educating contributors about safe content practices and limiting the use of shortcodes that accept user input can reduce attack surface. Finally, maintaining up-to-date backups ensures recovery capability in case of compromise.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2025-01-23T18:15:57.043Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6e67b7ef31ef0b59ffe6

Added to database: 2/25/2026, 9:49:27 PM

Last enriched: 2/25/2026, 10:59:40 PM

Last updated: 2/26/2026, 7:37:32 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