CVE-2017-16019 json
Cross-Site Scripting in gitbook
published 2018-06-04 8 y ago modified 2026-06-17 4 mo ago also GHSA-5h5r-23r4-m87h , EUVD-2020-0788
- cvss
- 6.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 60%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm gitbook 3.2.2
- gitbook gitbook 3.2.2
Exploit prediction
0.92% chance of exploitation in the next 30 days, higher than 60% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/GitbookIO/gitbook/issues/1609 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | gitbook | <3.2.2 |
3.2.2 |
Affected products
- HackerOne gitbook node module
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/GitbookIO/gitbook/issues/1609
web, exploit, third-party-advisory
-
nodesecurity.io
/advisories/159
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2017-16019
advisory
-
npmjs.com
/advisories/159
web
Sources
- CVE List CVE-2017-16019
- GitHub Advisory GHSA-5h5r-23r4-m87h
- NVD CVE-2017-16019
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.