CVE-2018-20583
Thephpleague Commonmark vulnerability
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).
Affected products
Commonmark. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Thephpleague Commonmark runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- commonmark.thephpleague.com/changelog/ · Third Party Advisory
- github.com/thephpleague/commonmark/issues/337 · Exploit
- github.com/thephpleague/commonmark/releases/tag/0.18.1 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2018-20583
- cve.org/CVERecord?id=CVE-2018-20583
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.