CVE-2019-19596
Description
GitBook versions through 2.6.9 allow stored XSS via a crafted local .md file, enabling arbitrary JavaScript execution when the file is rendered.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
GitBook versions through 2.6.9 allow stored XSS via a crafted local .md file, enabling arbitrary JavaScript execution when the file is rendered.
Vulnerability
Overview
CVE-2019-19596 describes a stored cross-site scripting (XSS) vulnerability in GitBook, a documentation platform, affecting versions up to and including 2.6.9. The flaw allows an attacker to inject malicious scripts into a local Markdown (.md) file that, when processed and rendered by GitBook, executes in the context of the user's browser [1].
Exploitation
Details
Exploitation requires the attacker to supply a specially crafted .md file containing embedded JavaScript, for example via an onmouseover event within an HTML tag [2]. The victim must then open that file using GitBook. No authentication is needed to trigger the XSS once the file is loaded, as GitBook renders the Markdown content without proper sanitization.
Impact
Successful exploitation allows the attacker to execute arbitrary JavaScript in the victim's browser session. This can lead to session hijacking, data exfiltration, or other client-side attacks, depending on the privileges of the user viewing the document.
Mitigation
No official patch was released at the time of disclosure; users are advised to avoid opening untrusted .md files in GitBook 2.6.9 or earlier. Upgrading to a newer, patched version is recommended. The vulnerability is not known to be exploited in the wild as of the publication date [1][2].
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
gitbooknpm | <= 2.6.9 | — |
Affected products
2- GitBook/GitBookdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
2- github.com/advisories/GHSA-hwgp-c653-6684ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2019-19596ghsaADVISORY
News mentions
0No linked articles in our index yet.