# CVE-2026-41576: Ajax30/BraveCMS-2.0: Stored HTML Injection in Contact Email via nl2br() and Unescaped Blade Template

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-05-08T14:50:40.956Z
- Modified: 2026-10-26T18:10:00.173Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- Ajax30 BraveCMS-2.0: < 6c5660373cf5f0ca9181603280427aca46ef11ea

## References

- <https://github.com/Ajax30/BraveCMS-2.0/security/advisories/GHSA-x7cg-8grr-grvx>
- <https://github.com/Ajax30/BraveCMS-2.0/commit/6c5660373cf5f0ca9181603280427aca46ef11ea>

## Sources

- CVE List: [CVE-2026-41576](https://www.cve.org/CVERecord?id=CVE-2026-41576), CVE Terms of Use, modified 2026-05-13
- NVD: [CVE-2026-41576](https://nvd.nist.gov/vuln/detail/CVE-2026-41576), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-41576 · Whole record: https://cve.day/CVE-2026-41576.json · Rebuilt by cve.day 2026-11-25T22:59:21.020Z
