CVE-2018-20583
PHP packages · CVE-2018-20583
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).
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.863% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T15:55:09.885Z. Public exploit availability is not used to set this status.
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T15:55:09.885Z | CISA KEV |
| cvss | unknown | unknown | unknown |
| epss | verified | 2026-11-19T16:04:25.255Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:36.038Z | OSV |
| affected | verified | 2026-11-19T12:55:06.516Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:06.516Z | CVE Program |
Affected versions and configuration
n/a n/a; default status: unknown: n/a [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://commonmark.thephpleague.com/changelog/",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/thephpleague/commonmark/issues/337",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/thephpleague/commonmark/releases/tag/0.18.1",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-05T12:05:17.632Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-qx76-c53f-5c7q",
"aliases": [
"CVE-2018-20583"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.15.6"
},
{
"fixed": "0.18.1"
}
]
}
],
"package": {
"name": "league/commonmark",
"purl": "pkg:composer/league/commonmark",
"ecosystem": "Packagist"
},
"versions": [
"0.15.6",
"0.15.7",
"0.16.0",
"0.17.0",
"0.17.1",
"0.17.2",
"0.17.3",
"0.17.4",
"0.17.5",
"0.18.0"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-qx76-c53f-5c7q/GHSA-qx76-c53f-5c7q.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2018-20583",
"type": "ADVISORY"
},
{
"url": "https://github.com/thephpleague/commonmark/issues/337",
"type": "WEB"
},
{
"url": "https://commonmark.thephpleague.com/changelog",
"type": "WEB"
},
{
"url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/league/commonmark/CVE-2018-20583.yaml",
"type": "WEB"
},
{
"url": "https://github.com/thephpleague/commonmark",
"type": "PACKAGE"
},
{
"url": "https://github.com/thephpleague/commonmark/releases/tag/0.18.1",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2018-12-30T05:29:00Z",
"github_reviewed_at": "2022-09-12T15:59:43Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Packagist / package | league/commonmark | Not a distribution channel | 0.18.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:36.038ZArchived source JSON
Source publication: 2022-05-14T01:40:50.000Z
Source modification: 2024-02-16T08:16:43.743ZDocument fingerprint
0a172730ef394e9ee41ee53616a5f7f927626c621a555502c10a358a3911785b - CISA KEVConsulted: 2026-11-19T15:55:09.885ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - CVE ProgramConsulted: 2026-11-19T12:55:06.516ZArchived source JSON
Source publication: 2018-12-30T05:00:00.000Z
Source modification: 2024-09-16T21:57:28.330ZDocument fingerprint
1194f13279c55f8f90cbc380485c041a8ff5d19d3d4aff5d13343b7878aaf3be - FIRST EPSSConsulted: 2026-11-19T16:04:25.255ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
3667369af43a2e08c587b7e227e51782fd94fb781bcb3d5d75d036fed21180aa
Official status history
- UNKNOWN → PUBLISHED · · evidence