Live threats

All CVEs / Gitbook

CVE-2017-16019Gitbook

Medium 6.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gitbook.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
gitbookgitbook< 3.2.2

Official sources

References

Links published by the sources. Open them with care.