CVE-2019-19596 GitBook allows Cross-site Scripting via a local .md file.
An attacker can execute arbitrary scripts in the victim's browser by tricking them into opening a malicious local Markdown file in GitBook.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2019-19596?
CVE-2019-19596 is a medium-severity cross-site scripting vulnerability in n/a, published on 5 Dec 2019. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
GitBook through 2.6.9 allows XSS via a local .md file.
Weakness: CWE-79
Which versions are affected by CVE-2019-19596?
2 open source packages ship an affected version, including gitbook. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gitbook npm | All versions to 2.6.9 | None |
gitbook npm | All versions to 2.6.9 | None |
Products include Gitbook Gitbook.
How do I fix CVE-2019-19596?
No fix has been published for CVE-2019-19596 yet. Limit exposure of the affected software until one is available.
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-19596 being exploited?
There is no known exploitation of CVE-2019-19596 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-hwgp-c653-6684.