HTML Injection in LinkedIn Premium Support Chat
The LinkedIn Premium support chat rendered unsanitised HTML input as clickable links. An attacker could send a link to trick support staff into visiting a phishing site.
- Triaged in 24 hours
- Fixed in 24 days
- Paid in 46 hours
- Disclosed after 31 days
Summary by the researcher
This bug took me only 30 seconds to find 😂📈
The report
Summary:
A vulnerability exists in the LinkedIn Premium support chat interface where unsanitized HTML input is rendered directly in the chat window. An attacker can exploit this by injecting malicious HTML such as clickable links, potentially leading to phishing or redirection attacks on LinkedIn support staff.
Steps to Reproduce:
-
Go to https://www.linkedin.com/feed and log in to your LinkedIn account.
-
On the left sidebar, under "Job search smarter with Premium", click "Try for ₹0".
-
You will be redirected to this URL:
https://www.linkedin.com/premium/survey/?destRedirectURL=https%3A%2F%2Fwww.linkedin.com%2Fsearch%2Fresults%2Fall%2F%3Fkeywords%3Dtest%2520card%2520bugbounty%26origin%3DGLOBAL_SEARCH_HEADER%26sid%3Dn%253Bl -
Once the page loads, wait for the support chat widget to appear in the bottom-right corner.
-
Open the chat window and send the following input:
HTML <a href="https://evil.com">CLICK</a> -
The input is rendered as an actual clickable link in the chat interface.
-
If a LinkedIn support employee views the message and clicks the link, they are redirected to an external site, which could be used for phishing or other malicious purposes.
Impact:
- HTML injection in a support chat poses risks of phishing, social engineering, or redirection attacks.
- It breaks the assumption of trust in support systems.
- If used cleverly, attackers could mimic internal LinkedIn UI elements to trick employees into further interaction.
Security Risk:
- HTML Injection
- Phishing/Social Engineering Risk
- Potential for Clickjacking or Further Exploits
Expected Behavior:
User input in chat should be sanitized and rendered as plain text. No HTML or tags should be interpreted.
Observed Behavior:
HTML, such as <a> tags, is rendered in the chat and appears clickable to support agents.
Severity:
Medium (may be increased based on internal LinkedIn threat models)
Recommendation:
- Sanitize user input using libraries like DOMPurify.
- Encode all user-generated content before rendering.
- Review all chat-related components for similar injection points.
Impact
🔸 1. Phishing Attacks Against LinkedIn Employees
By injecting a crafted HTML link (e.g., <a href="https://malicious-site.com">CLICK HERE</a>), the attacker can:
- Trick LinkedIn support staff into visiting malicious websites
- Lead them to phishing pages mimicking LinkedIn internal portals
- Attempt to harvest credentials or trigger malware downloads
🔸 2. Social Engineering and Internal Trust Exploitation
Since the injected content appears in the official LinkedIn chat interface:
- It can be used to impersonate UI elements or instructions (e.g., "Click here to fix the issue")
- Employees may trust and act on malicious instructions
🔸 3. Reputation and Legal Risk for LinkedIn
If an employee clicks on a malicious link and gets compromised, this could:
- Lead to unauthorized access to internal tools or user data
- Trigger compliance or data protection issues
🔸 4. Potential Pathway to Escalation
Although currently limited to HTML injection:
- If any future misconfiguration allows JavaScript execution, it could escalate to stored/reflected XSS
- This could lead to full session hijacking or internal system compromise
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
Root cause
Likely the chat interface rendered user-supplied HTML without sanitising or encoding it.
Impact
An attacker could phish or socially engineer LinkedIn support staff by sending a link that appears inside the official chat, though the report notes this is currently limited to HTML injection without JavaScript execution.
What the attacker needed
A LinkedIn account; access to the Premium support chat; victim (support staff) clicks the link
The fix
User input in chat should be sanitised and rendered as plain text, for example using a library like DOMPurify.
How it was found
- Log in to LinkedIn and go to the feed.
- Click the Premium trial link in the sidebar.
- Wait for the support chat widget to appear.
- Open the chat and send HTML containing a link.
- The input appears as a clickable link.
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.
When a website shows user input without cleaning it, it can treat that input as code. Here, the chat displayed HTML (the language of web pages) as real clickable links instead of plain text. This lets an attacker send a link that looks like part of the chat, which a support worker might click.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.