CVE-2018-20858 Cross-site scripting in recommender-xblock
Cross-site scripting vulnerability in the Recommender library allows attackers to inject malicious scripts into web pages viewed by 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-2018-20858?
CVE-2018-20858 is a medium-severity cross-site scripting vulnerability in n/a, published on 9 Aug 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
Recommender before 2018-07-18 allows XSS.
Weakness: CWE-79
Which versions are affected by CVE-2018-20858?
3 open source packages ship an affected version, including recommender-xblock. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
recommender-xblock PyPI | All versions | 1.3.1 |
recommender-xblock PyPI | All versions | 1.3.1 |
recommender-xblock PyPI | All versions | 1.3.1 |
Products include Edx Recommender.
How do I fix CVE-2018-20858?
Upgrade recommender-xblock to 1.3.1 or later.
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-2018-20858 being exploited?
There is no known exploitation of CVE-2018-20858 in the wild and no public exploit code.
Sources
Also known as GHSA-3j5x-7ccf-ppgm, PYSEC-2019-219.