CVE-2019-19596 GitBook allows Cross-site Scripting via a local .md file.

Medium 5.4 Published Updated

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.

PackageAffectedFixed in
gitbook npmAll versions to 2.6.9None
gitbook npmAll versions to 2.6.9None

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.

Sources

Also known as GHSA-hwgp-c653-6684.

Is CVE-2019-19596 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free