CVE-2019-13122 Cross-site scripting in n/a
An attacker can inject JavaScript into Patchwork patch detail pages via malicious emails, potentially executing code in the context of other users.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2019-13122?
CVE-2019-13122 is a medium-severity cross-site scripting vulnerability in n/a, published on 10 Jul 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A Cross Site Scripting (XSS) vulnerability exists in the template tag used to render message ids in Patchwork v1.1 through v2.1.x. This allows an attacker to insert JavaScript or HTML into the patch detail page via an email sent to a mailing list consumed by Patchwork. This affects the function msgid in templatetags/patch.py. Patchwork versions v2.1.4 and v2.0.4 will contain the fix.
Weakness: CWE-79
Which versions are affected by CVE-2019-13122?
It affects 1 product.
Products include Ozlabs Patchwork.
How do I fix CVE-2019-13122?
Upgrade to a fixed version.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2019-13122 being exploited?
There is no known exploitation of CVE-2019-13122 in the wild and no public exploit code.
Sources
Also known as ALPINE-CVE-2019-13122, GHSA-x839-gjmw-5j5v.