XSS via Email Link
An email containing a hyperlink with a javascript: URI could be sent to a team email address, and when the email was viewed in the web application with the original HTML view, clicking the link executed JavaScript. This allowed an attacker to run script in the context of the webmail application.
Originally disclosed on HackerOne
- Triaged in 34 hours
- Fixed in 2 days
- Disclosed after 3 days
Hey,
So, we can send emails to team email address like - [email protected] . In the email body if there is a hyperlink pointing to javascript:alert(0); or any other javascript: URI then open viewing the email in your web application with original HTML view and then on clicking it will trigger javascript execution, that is XSS.
Thanks!
Attachments

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
What the attacker needed
Ability to send email to a team address; victim views email in original HTML mode; victim clicks the link
How it was found
- Send an email to a team email address with a hyperlink using a javascript: URI in the body.
- Open the email in the web application using the original HTML view.
- Click the hyperlink to trigger JavaScript execution.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A javascript: link is a special kind of link that runs code instead of opening a web page. The email app showed the raw HTML of the message and let that link work, so clicking it ran the attacker's code inside the email website. This is cross-site scripting (XSS): running someone else's code in a trusted site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.