Inefficient Regular Expression Complexity Affecting node-marked package, versions <4.0.12+ds+~4.0.1-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.46% (64th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Inefficient Regular Expression Complexity vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIANUNSTABLE-NODEMARKED-2393725
  • published4 Feb 2022
  • disclosed14 Jan 2022

Introduced: 14 Jan 2022

CVE-2022-21680  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Debian:unstable node-marked to version 4.0.12+ds+~4.0.1-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream node-marked package and not the node-marked package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

Marked is a markdown parser and compiler. Prior to version 4.0.10, the regular expression block.def may cause catastrophic backtracking against some strings and lead to a regular expression denial of service (ReDoS). Anyone who runs untrusted markdown through a vulnerable version of marked and does not use a worker with a time limit may be affected. This issue is patched in version 4.0.10. As a workaround, avoid running untrusted markdown through marked or run marked on a worker thread and set a reasonable time limit to prevent draining resources.

CVSS Base Scores

version 3.1