{"id":"GHSA-7hvx-28gp-mf6j","revision":"dbd8780f91344fd5ab60582c3fc2c753","records":[{"revision":"dbd8780f91344fd5ab60582c3fc2c753","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-7hvx-28gp-mf6j","aliases":["CVE-2026-76909"],"title":"Unleash: CR-approval email renders user-controlled raw HTML","description":"### Summary\nThe 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.\n\n### Details\n`src/mailtemplates/requested-cr-approval/requested-cr-approval.html.mustache` uses Mustache triple-stash syntax for fields that can originate from users:\n\n```mustache\n{{{ changeRequestTitle }}}\n{{{ requesterName }}}\n{{{ requesterEmail }}}\n{{{ changeRequestLink }}}\n```\n\nTriple-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`.\n\n### PoC\n1. Use an Enterprise deployment with change requests and approval emails enabled.\n2. As a project member who can create change requests, set a display name or change-request title to HTML such as:\n\n```html\n</a><a href=\"https://example.com\">Approve change request</a>\n```\n\n3. Create a change request that requires approval.\n4. Observe that the approval email contains attacker-controlled raw HTML instead of escaped text.\n\n### Impact\nChange-request approvers can receive forged links, tracking pixels, or visually altered email content.","state":0,"publishedAt":"2026-09-22T20:34:38+00:00","modifiedAt":"2026-09-22T21:00:07.9945088+00:00","affected":[{"ecosystem":"npm","name":"unleash-server","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"8.0.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"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"],"sourceUrl":"https://github.com/advisories/GHSA-7hvx-28gp-mf6j","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-7hvx-28gp-mf6j","identifiers":["GHSA-7hvx-28gp-mf6j","CVE-2026-76909"]},"retained":false,"historicalAffected":[]}],"coverage":[]}