Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-16019

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2017-16019
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 09:54 UTC · Revision 1

Source evidence

CVE-2017-16019

core-osv · Original source

Published 4 Jun 2018, 19:29 UTC

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.

osv:CVE-2017-16019
Complete source record
{
  "id": "03e8fca2fbc8970f84d778962de41bcbfd8b241f30e936521015c549e7ee58ff",
  "url": "https://osv.dev/vulnerability/CVE-2017-16019",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-16019",
    "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.",
    "evidence": "osv:CVE-2017-16019",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2017-16019",
      "aliases": [
        "CVE-2017-16019",
        "GHSA-5h5r-23r4-m87h"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gitbookio/gitbook",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "ad425b9772c73df297cfe9c024e7dd99e9bc4c75"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gitbook:gitbook:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.2.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.6.7",
            "3.1.1",
            "3.2.1",
            "3.2.0",
            "3.2.0-pre.1",
            "3.2.0-pre.0",
            "3.1.0",
            "3.0.3",
            "3.0.2",
            "3.0.1",
            "3.0.0",
            "3.0.0-pre.15",
            "3.0.0-pre.14",
            "3.0.0-pre.13",
            "3.0.0-pre.12",
            "3.0.0-pre.11",
            "3.0.0-pre.10",
            "3.0.0-pre.9",
            "3.0.0-pre.8",
            "3.0.0-pre.7",
            "3.0.0-pre.6",
            "3.0.0-pre.5",
            "3.0.0-pre.4",
            "3.0.0-pre.3",
            "3.0.0-pre.2",
            "3.0.0-pre.1",
            "2.6.6",
            "2.6.5",
            "2.6.4",
            "2.6.3",
            "2.6.2",
            "2.6.1",
            "2.6.0",
            "2.5.2",
            "2.5.1",
            "2.5.0",
            "2.5.0-beta.7",
            "2.5.0-beta.6",
            "2.5.0-beta.5",
            "2.5.0-beta.4",
            "2.5.0-beta.3",
            "2.5.0-beta.2",
            "2.5.0-beta.1",
            "2.4.3",
            "2.4.2",
            "2.4.1",
            "2.4.0",
            "2.3.3",
            "2.3.2",
            "2.3.1",
            "2.3.0",
            "2.2.0",
            "2.1.0",
            "2.0.4",
            "2.0.3",
            "2.0.2",
            "2.0.1",
            "2.0.0",
            "2.0.0-beta.5",
            "2.0.0-beta.4",
            "2.0.0-beta.3",
            "2.0.0-beta.2",
            "2.0.0-beta.1",
            "1.5.0",
            "1.4.2",
            "1.4.1",
            "1.4.0",
            "1.3.4",
            "1.3.3",
            "1.3.2",
            "1.3.1",
            "1.3.0",
            "1.2.0",
            "1.1.1",
            "1.1.0",
            "1.0.3",
            "1.0.2",
            "1.0.1",
            "1.0.0",
            "0.7.1",
            "0.7.0",
            "0.6.3",
            "0.6.2",
            "0.6.1",
            "0.6.0",
            "0.5.6",
            "0.5.5",
            "0.5.4",
            "0.5.3",
            "0.5.2",
            "0.5.1",
            "0.5.0",
            "0.4.8",
            "0.4.7",
            "0.4.6",
            "0.4.5",
            "0.4.4",
            "0.4.3",
            "0.4.2",
            "0.4.1",
            "0.4.0",
            "0.3.2",
            "0.3.1",
            "0.2.4",
            "0.2.3",
            "0.2.2",
            "0.2.1",
            "0.2.0",
            "0.1.2",
            "0.1.0",
            "0.0.4",
            "0.0.3",
            "0.0.2",
            "0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-16019.json"
          }
        }
      ],
      "modified": "2026-10-20T10:48:19.293821327Z",
      "provider": "osv",
      "references": [
        "https://nodesecurity.io/advisories/159",
        "https://github.com/GitbookIO/gitbook/issues/1609"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2017-16019",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 380281,
  "published_at": "2018-06-04T19:29:01.193+00:00"
}