{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "1.2.0"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "62efec06056b045c8c5e9c1126d9253ba27b9cb3"
            }
          ],
          "repo": "https://github.com/cebe/markdown",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "PHP cebe markdown parser version 1.2.0 and earlier contains a Cross Site Scripting (XSS) vulnerability in all distributed parsers allowing a malicious crafted script to be executed that can result in the lose of user data and sensitive user information. This attack can be exploited by crafting a three backtick wrapped payload with a character in front: L: \"```\u003cscript\u003ealert();\u003c/script\u003e```\". NOTE: This has been argued as a non-issue (see references) since it is not the parser's job to sanitize malicious code from a parsed document",
  "id": "CVE-2018-1000874",
  "modified": "2026-03-13T21:47:41.293788185Z",
  "published": "2018-12-20T17:29:00.957Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://github.com/cebe/markdown/issues/166"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/cebe/markdown/issues/166#issuecomment-508230493"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}