Live threats

All CVEs / Parsedown

CVE-2018-1000162Parsedown

Medium 6.1 No auth needed

Priority
52
CVSS 3.0
6.1
EPSS
1.2%
probability of exploitation in 30 days · percentile 68
Auth required
No
Published
Apr 18, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

Parsedown version prior to 1.7.0 contains a Cross Site Scripting (XSS) vulnerability in `setMarkupEscaped` for escaping HTML that can result in JavaScript code execution. This attack appears to be exploitable via specially crafted markdown that allows it to side step HTML escaping by breaking AST boundaries. This vulnerability appears to have been fixed in 1.7.0 and later.

Original NVD text.

What to do

  1. Apply the vendor's security update for Parsedown.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist erusev/parsedown < 1.7.0 1.7.0 composer require "erusev/parsedown:^1.7.0"

Per OSV / GitHub Advisories (GHSA-qgpv-86r3-87fh). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
parsedownparsedown< 1.7.0

Official sources

References

Links published by the sources. Open them with care.