{
  "affected": [
    {
      "database_specific": {
        "unresolved_ranges": [
          {
            "events": [
              {
                "introduced": "0.15.6"
              },
              {
                "last_affected": "0.18.0"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0.15.6"
              },
              {
                "last_affected": "0.18.x"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.18.1"
              }
            ]
          }
        ]
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "e5029f74ba39e043ce4b3ca6c05dc719d8aafd94"
            }
          ],
          "repo": "https://github.com/thephpleague/commonmark",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "e5029f74ba39e043ce4b3ca6c05dc719d8aafd94"
            }
          ],
          "repo": "https://github.com/thephpleague/commonmark",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "Cross-site scripting (XSS) vulnerability in the PHP League CommonMark library versions 0.15.6 through 0.18.x before 0.18.1 allows remote attackers to insert unsafe URLs into HTML (even if allow_unsafe_links is false) via a newline character (e.g., writing javascript as javascri%0apt).",
  "id": "CVE-2018-20583",
  "modified": "2026-03-15T13:46:45.471991677Z",
  "published": "2018-12-30T05:29:00.753Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://commonmark.thephpleague.com/changelog/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/thephpleague/commonmark/releases/tag/0.18.1"
    },
    {
      "type": "EVIDENCE",
      "url": "https://github.com/thephpleague/commonmark/issues/337"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}