# GHSA-7HVX-28GP-MF6J: Unleash: CR-approval email renders user-controlled raw HTML

- Database: GitHub
- Severity: low (stated by ghsa, no CVSS score)
- Published: 2026-09-22
- Modified: 2026-09-22

## Tracked as

- [CVE-2026-76909](https://cve.now/CVE-2026-76909.md): Unleash: CR-approval email renders user-controlled raw HTML

## Affected versions

- unleash-server (npm): fixed in 8.0.3

## Description

### Summary
The change-request approval HTML email template renders fields as raw HTML. User who can create a change request can inject HTML into approval notification emails. I was not able to confirm Enterprise platform is using vulnerable code nor that it doesn't sanitize input.

### Details
`src/mailtemplates/requested-cr-approval/requested-cr-approval.html.mustache` uses Mustache triple-stash syntax for fields that can originate from users:

```mustache
{{{ changeRequestTitle }}}
{{{ requesterName }}}
{{{ requesterEmail }}}
{{{ changeRequestLink }}}
```

Triple-stash disables HTML escaping even when Mustache's global escape function is safe. The related renderer is `sendRequestedCRApprovalEmail` in `src/lib/services/email-service.ts`, which renders the template with `Mustache.render`.

### PoC
1. Use an Enterprise deployment with change requests and approval emails enabled.
2. As a project member who can create change requests, set a display name or change-request title to HTML such as:

```html
</a><a href="https://example.com">Approve change request</a>
```

3. Create a change request that requires approval.
4. Observe that the approval email contains attacker-controlled raw HTML instead of escaped text.

### Impact
Change-request approvers can receive forged links, tracking pixels, or visually altered email content.

## References

- https://github.com/Unleash/unleash/security/advisories/GHSA-7hvx-28gp-mf6j
- https://github.com/Unleash/unleash/commit/7c89cedcbbb5aa826951373569930e0a3c4358db
- https://github.com/Unleash/unleash
- https://github.com/Unleash/unleash/releases/tag/v8.0.3

Page: https://cve.now/GHSA-7HVX-28GP-MF6J

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
