Advisory

GHSA-p9wx-2529-fp83

Also known as: CVE-2018-25110

Summary

Marked allows Regular Expression Denial of Service (ReDoS) attacks

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-05-23 15:31 UTC
Modified
2025-05-27 15:27 UTC

Affected packages and fixes

marked

npm · All systems

Affected

  • introduced 0, fixed 0.3.17 (semver)

Fixed versions

0.3.17

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences