Skip to main content

CVE-2025-5843: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in brandfolder Brandfolder – Digital Asset Management Simplified.

Medium
VulnerabilityCVE-2025-5843cvecve-2025-5843cwe-79
Published: Wed Jul 16 2025 (07/16/2025, 06:40:41 UTC)
Source: CVE Database V5
Vendor/Project: brandfolder
Product: Brandfolder – Digital Asset Management Simplified.

Description

The Brandfolder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the ‘id’ parameter in all versions up to, and including, 5.0.19 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

AILast updated: 07/16/2025, 07:02:55 UTC

Technical Analysis

CVE-2025-5843 is a stored Cross-Site Scripting (XSS) vulnerability identified in the Brandfolder plugin for WordPress, a digital asset management tool widely used to organize and share media assets. This vulnerability exists in all versions up to and including 5.0.19. The root cause is insufficient sanitization and output escaping of the 'id' parameter, which allows authenticated users with Contributor-level access or higher to inject arbitrary JavaScript code into pages. Because the malicious script is stored persistently, it executes every time any user accesses the compromised page, potentially leading to session hijacking, privilege escalation, or unauthorized actions within the WordPress environment. The vulnerability has a CVSS 3.1 base score of 6.4, indicating a medium severity level. The attack vector is network-based with low attack complexity, requiring only privileges of a Contributor or above, and no user interaction is needed for exploitation. The scope is changed, meaning the vulnerability can affect resources beyond the initially compromised component. No known exploits are currently reported in the wild, and no patches have been linked yet, emphasizing the need for prompt vendor response and user vigilance. Stored XSS is particularly dangerous because it can affect multiple users and persist over time, increasing the risk of widespread compromise within affected WordPress sites using this plugin.

Potential Impact

For European organizations using the Brandfolder WordPress plugin, this vulnerability poses a significant risk to the confidentiality and integrity of their web applications and user data. Attackers with Contributor-level access can inject malicious scripts that execute in the context of other users, potentially stealing authentication tokens, performing unauthorized actions, or spreading malware. This can lead to data breaches, defacement of websites, loss of customer trust, and regulatory non-compliance, especially under GDPR which mandates protection of personal data. Since WordPress is a popular CMS in Europe and Brandfolder is used by enterprises for digital asset management, the impact could extend to marketing, communications, and content management teams. The vulnerability does not directly affect availability but compromises the integrity and confidentiality of the web environment. Additionally, the scope change means that the impact could extend beyond the plugin itself, affecting other parts of the WordPress site or integrated systems. Organizations with Contributor-level users should be particularly cautious, as these roles are commonly assigned to content creators and editors who may not be security-aware, increasing the risk of exploitation.

Mitigation Recommendations

1. Immediate mitigation should include restricting Contributor-level access to trusted users only until a patch is available. 2. Implement Web Application Firewall (WAF) rules to detect and block suspicious payloads targeting the 'id' parameter in Brandfolder plugin requests. 3. Monitor logs for unusual activity or script injections related to the plugin. 4. Encourage users to apply the principle of least privilege, limiting Contributor or higher roles to essential personnel. 5. Regularly update the Brandfolder plugin once the vendor releases a patch addressing this vulnerability. 6. Conduct security awareness training for content contributors to recognize phishing or social engineering attempts that could lead to exploitation. 7. Employ Content Security Policy (CSP) headers to restrict execution of unauthorized scripts on affected sites. 8. Perform code review or use automated scanning tools to detect similar input sanitization issues in custom plugins or themes. 9. Backup WordPress sites regularly to enable quick restoration in case of compromise. These steps go beyond generic advice by focusing on access control, monitoring, and layered defenses specific to the nature of this stored XSS in a WordPress plugin environment.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2025-06-06T22:39:41.725Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 68774ab7a83201eaacd437fe

Added to database: 7/16/2025, 6:46:15 AM

Last enriched: 7/16/2025, 7:02:55 AM

Last updated: 7/16/2025, 7:02:55 AM

Views: 2

Actions

PRO

Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.

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

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats