CVE-2018-12104 Airbnb Knowledge Repo XSS In Comments
Remote attackers can inject arbitrary web scripts via post comments in Airbnb Knowledge Repo, potentially compromising user sessions.
- 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-12104?
CVE-2018-12104 is a medium-severity cross-site scripting vulnerability in n/a, published on 17 Jun 2018. 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
Cross-site scripting (XSS) vulnerability in Airbnb Knowledge Repo 0.7.4 allows remote attackers to inject arbitrary web scripts or HTML via the post comments functionality, as demonstrated by the post/posts/new_report.kp URI.
Weakness: CWE-79
Which versions are affected by CVE-2018-12104?
3 open source packages ship an affected version, including knowledge-repo. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
knowledge-repo PyPI | All versions | 0.7.5 |
knowledge-repo PyPI | All versions | 0.9.0 |
knowledge-repo PyPI | All versions | 0.9.0 |
Products include Airbnb Knowledge Repo.
How do I fix CVE-2018-12104?
Upgrade knowledge-repo to a fixed version for your release line: 0.7.5 or 0.9.0.
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-12104 being exploited?
There is no known exploitation of CVE-2018-12104 in the wild and no public exploit code.
Sources
Also known as GHSA-xmw7-848p-p95w, PYSEC-2018-116.