Atlassian Jira WikiRenderer parser XSS vulnerability
The WikiRenderer in Atlassian Jira fails to properly sanitise image attributes, allowing an attacker to inject malicious JavaScript into a comment or worklog. This results in persistent XSS that executes when other users view the affected content.
Originally disclosed on Cisco Talos
An exploitable XSS vulnerability exists in the WikiRenderer functionality of Atlassian Jira, from version 7.6.4 to 8.1.0. A specially crafted comment can cause a persistent XSS.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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 renderer fails to properly escape or validate image attribute values, allowing malformed HTML to be generated.
Impact
An attacker could execute arbitrary JavaScript in the context of other users viewing the comment, potentially leading to account compromise or data theft.
What the attacker needed
Authenticated user able to comment; victim views the comment
The fix
The vulnerability was fixed by the vendor in a later release.
How it was found
- Create an issue comment with a specially crafted image markup.
- The comment is rendered by WikiRenderer, producing malformed HTML.
- The injected JavaScript executes when the comment is viewed.
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 persistent cross-site scripting (XSS) flaw lets an attacker store harmful code in a comment. When someone else opens that comment, the code runs in their browser, potentially stealing their session or performing actions on their behalf.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.