Skip to content
OpenAdvisories
Medium · 6.9 CVE-2018-25110 EUVD-2018-21603GHSA-p9wx-2529-fp83

Regular Expression Denial of Service (ReDoS) in markedjs/marked

Published May 23, 2025 · Updated May 23, 2025 · Assigned by Checkmarx

Description

Marked prior to version 0.3.17 is vulnerable to a Regular Expression Denial of Service (ReDoS) attack due to catastrophic backtracking in several regular expressions used for parsing HTML tags and markdown links. An attacker can exploit this vulnerability by providing specially crafted markdown input, such as deeply nested or repetitively structured brackets or tag attributes, which cause the parser to hang and lead to a Denial of Service.

Affected products

VendorProductAffectedFixed
— marked < 0.3.17 0.3.17

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-marked 0.5.1+dfsg-1 —
Debian 13 node-marked 0.5.1+dfsg-1 —
Debian 12 node-marked 0.5.1+dfsg-1 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS node-marked No fix yet —
Ubuntu 16.04 LTS node-marked No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm marked < 0.3.17 0.3.17 GHSA-p9wx-2529-fp83

References