Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAccess public contact form
-
DeliveryInject HTML in message field
-
ExploitSubmit form without authentication
-
InstallMalicious email sent to administrator
-
C2Administrator opens HTML email
-
ExecutePhishing interface renders
-
ImpactAdministrator enters credentials
-
Step 8Credentials transmitted to attacker
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Public contact form feature must be enabled and accessible (default configuration in Brave CMS 2.0). Administrator must be configured to receive email notifications for contact form submissions. Administrator's email client must render HTML content (most modern webmail and desktop clients do by default). No authentication required for initial form submission (CVSS PR:N confirms unauthenticated access). Exploitation is limited by the UI:R requirement - the administrator must open and interact with the email notification for phishing attack to succeed. The vulnerability does NOT work if: administrators use plain-text-only email clients, email notifications are disabled, or organizational email gateways strip HTML content from external messages. The S:U (unchanged scope) in CVSS indicates exploitation remains within the email rendering context and does not automatically compromise the CMS application itself. |
| Impact | Moderate real-world risk despite 7.1 CVSS score. CVSS vector AV:N/AC:L/PR:N/UI:R indicates network-accessible, low-complexity exploitation requiring no authentication but requiring user interaction (administrator must open the email). The High confidentiality impact reflects potential credential harvesting via phishing, while Low integrity impact suggests limited direct system compromise. No EPSS score or KEV status provided, preventing precise exploitation probability assessment. The UI:R requirement significantly constrains automated exploitation - this is a targeted social engineering vector rather than a mass-exploitable flaw. Email client security controls (JavaScript blocking) provide defense-in-depth, limiting impact to visual spoofing rather than drive-by compromise. Real priority depends on: (1) whether administrators routinely process contact form submissions, (2) organizational phishing awareness training, and (3) email client security posture. The publicly available patch commit (6c56603) on GitHub means vulnerability details and affected code paths are now fully disclosed, potentially accelerating exploitation attempts against unpatched instances. |
| Exploit ScenarioDerived | An unauthenticated attacker submits a contact form message containing malicious HTML markup such as a fake login form styled to mimic the CMS authentication page. The administrator receives an email notification with the injected HTML rendered in their email client. The attacker's fake form includes credential input fields with action attributes pointing to an attacker-controlled server. The administrator, believing the form is a legitimate system notification, enters credentials which are transmitted to the attacker. Publicly available commit diff on GitHub provides attackers with complete technical details of the vulnerability and exact code location for crafting effective exploits. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 08, 2026
HTML injection in Brave CMS 2.0 contact form allows remote attackers to inject arbitrary HTML markup into administrative notification emails. The unauthenticated contact form passes user-supplied message text through nl2br() without HTML escaping, then renders it using Blade's unescaped {!! $msg !!} directive. While JavaScript execution is blocked by modern email clients, attackers can craft convincing phishing interfaces within the email body to target administrators. Upstream fix available via commit 6c56603, which implements HTML escaping using Laravel's e() helper function. EPSS and KEV data not provided. GitHub source diff confirms the vulnerability in ContactController.php and documents the server-side sanitization fix.
RemediationAI
Apply the vendor-released patch by updating to Brave CMS commit 6c56603 or later from the GitHub repository at https://github.com/Ajax30/BraveCMS-2.0. The fix implements HTML entity escaping via Laravel's e() helper function before passing user input to email templates, changing {!! $msg !!} to use the escaped variable $cleanMessage. Review the complete patch at commit 6c5660373cf5f0ca9181603280427aca46ef11ea for implementation details. If immediate patching is not possible, implement compensating controls: (1) Disable the public contact form feature by removing or restricting access to the /contact route until patching is complete (trade-off: eliminates legitimate contact channel); (2) Configure email client policies to render all emails as plain text only (trade-off: degrades legitimate HTML email rendering); (3) Implement Content Security Policy headers in email templates if supported by your email infrastructure to restrict inline styling (limited effectiveness, not universally supported). Note that manual code changes without full patch review may miss additional sanitization improvements in ArticleController and PageController documented in the same commit.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This is a server-side stored XSS vulnerability (CWE-79) in a Laravel-based PHP application. The flaw exists in ContactController.php where nl2br() converts newlines to <br> tags but does not perform HTML entity encoding. The resulting string is passed to a Blade email template using the unescaped output directive {!! !!} rather than the escaped {{ }} directive. Laravel's Blade templating engine executes {!! !!} without HTML entity encoding, allowing raw markup injection. The commit diff shows the fix implements Laravel's e() helper (equivalent to htmlspecialchars) to escape HTML entities before passing data to the email template. A broader HtmlSanitizer class was also introduced to clean rich content in Articles and Pages using DOMDocument with allowlists for safe tags and attributes.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Primary rating from Vendor (github) · only source for this CVE.
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
Brave CMS is an open-source CMS. Prior to commit 6c56603, the contact form is publicly accessible (no authentication required). User-supplied message text is passed through PHP's nl2br() function, which converts newlines to <br> tags but does not escape HTML. The resulting string is then passed to a Blade email template using the unescaped {!! $msg !!} directive. The resulting content is then rendered in a Blade email template using the unescaped {!! $msg !!} directive. Because HTML is not sanitized, arbitrary markup can be injected into the email body. While modern HTML-capable email clients (Gmail or Outlook Web) typically block JavaScript execution, they still render HTML content. This allows attackers to craft convincing phishing interfaces inside the email sent to the administrator. This issue has been patched via commit 6c56603.
Executive ViewAI
Brave CMS 2.0 contains an unauthenticated HTML injection vulnerability in the contact form that allows attackers to inject malicious HTML into administrative notification emails, enabling phishing attacks against site administrators. This creates direct risk to administrative accounts and operational security, as attackers can craft convincing fake login prompts or credential harvesting interfaces embedded in legitimate-appearing system notifications.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable contact form feature in Brave CMS 2.0 admin settings until patch available; (2) Implement email server-side content filtering to block HTML tags in contact form submission emails; (3) Conduct administrator security awareness training emphasizing verification of system emails before credential entry; (4) Monitor administrative email accounts for suspicious login attempts correlated with contact form submissions; (5) Consider deploying email authentication (SPF/DKIM/DMARC) to detect spoofed administrative notifications.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-28652
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB