CVE-2017-16019Gitbook
Medium 6.1 No auth needed
Follow: this CVE · Gitbook · Gitbook We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.0
- 6.1
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 58
- Auth required
- No
- Published
- Jun 4, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
GitBook is a command line tool (and Node.js library) for building beautiful books using GitHub/Git and Markdown (or AsciiDoc). Stored Cross-Site-Scripting (XSS) is possible in GitBook before 3.2.2 by including code outside of backticks in any ebook. This code will be executed on the online reader.
What to do
- Apply the vendor's security update for Gitbook.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | gitbook |
< 3.2.2 |
3.2.2 |
npm install gitbook@3.2.2 |
Per OSV / GitHub Advisories (GHSA-5h5r-23r4-m87h). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gitbook | gitbook | < 3.2.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory
- nodesecurity.io Third Party Advisory