CVE-2020-35305 Gollum Cross-site Scripting vulnerability via filename parameter to New Page dialog
An attacker can execute arbitrary scripts in the victim's browser via the filename parameter in the New Page dialog of the Gollum wiki.
- 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-2020-35305?
CVE-2020-35305 is a medium-severity cross-site scripting vulnerability in n/a, published on 15 Jul 2022. 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) in gollum 5.0 to 5.1.2 via the filename parameter to the 'New Page' dialog.
Weakness: CWE-79
Which versions are affected by CVE-2020-35305?
2 open source packages ship an affected version, including gollum. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gollum RubyGems | From 5.0 | 5.1.2 |
gollum RubyGems | From 5.0 | 5.1.2 |
Products include Gollum Project Gollum.
How do I fix CVE-2020-35305?
Upgrade gollum to 5.1.2 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-2020-35305 being exploited?
There is no known exploitation of CVE-2020-35305 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-fj2w-qmjp-3rjm.