LiveActive security incident?Get immediate response
CVE Record

CVE-2018-20583: Cross-site scripting (XSS) vulnerability in the PHP League CommonMark library versions 0.15.6 through 0.18....

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).

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This flaw affects PHP applications that used League CommonMark to turn Markdown into HTML. An attacker could hide an unsafe link using a newline trick, bypassing the library’s unsafe-link setting and creating cross-site scripting risk when users view rendered content.

Executive priority

Treat this as a targeted remediation item for applications accepting user Markdown. It is not shown as actively exploited, but the business impact can include account compromise or trusted-page script execution if exposed content is viewed.

Technical view

PHP League CommonMark versions 0.15.6 through 0.18.x before 0.18.1 allowed unsafe URLs through HTML output despite allow_unsafe_links=false when a newline interrupted the URL scheme. The vendor release 0.18.1 is cited as the fixing release.

Likely exposure

Exposure is likely where affected CommonMark versions render untrusted or semi-trusted Markdown, such as comments, profiles, documentation, tickets, or CMS content. Systems rendering only trusted internal Markdown have lower practical exposure.

Exploitation context

The source bundle does not show active exploitation, and the CVE is not listed as KEV. The issue is remotely reachable when attackers can submit Markdown that other users or administrators later view as rendered HTML.

Researcher notes

The available evidence is narrow but consistent: CVE description, vendor issue, changelog, and 0.18.1 release all point to an unsafe URL filtering bypass in CommonMark. No CVSS, CWE, CPE, or exploitation evidence is provided in the bundle.

Mitigation direction

  • Upgrade PHP League CommonMark to 0.18.1 or a later supported release.
  • Review vendor changelog and release notes before deploying the update.
  • Limit Markdown rendering to trusted content until affected versions are removed.
  • Apply output sanitization or link filtering where vendor guidance supports it.

Validation and detection

  • Check composer.lock and dependency manifests for league/commonmark versions 0.15.6 through 0.18.x before 0.18.1.
  • Identify routes or features rendering user-supplied Markdown into HTML.
  • Confirm allow_unsafe_links is not treated as the only safety control on affected versions.
  • Add regression tests for newline-obfuscated unsafe links using vendor issue context.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2018-20583 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.