GHSA-CH52-VGQ2-943F

GHSA-CH52-VGQ2-943F is a low-severity inefficient regular expression (ReDoS) vulnerability in marked (npm), affecting versions >= 0.4.0, < 0.7.0. It is fixed in 0.7.0.

Summary

Affected versions of marked are vulnerable to Regular Expression Denial of Service (ReDoS). The _label subrule may significantly degrade parsing performance of malformed input.

Impact

A regular expression with worst-case exponential or polynomial matching time is applied to untrusted input, causing excessive CPU use. Typical impact: denial of service when input is crafted to trigger backtracking.

Affected versions

marked (>= 0.4.0, < 0.7.0)

Security releases

marked → 0.7.0 (npm)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

Upgrade to version 0.7.0 or later.

Frequently Asked Questions

  1. What is GHSA-CH52-VGQ2-943F? GHSA-CH52-VGQ2-943F is a low-severity inefficient regular expression (ReDoS) vulnerability in marked (npm), affecting versions >= 0.4.0, < 0.7.0. It is fixed in 0.7.0. A regular expression with worst-case exponential or polynomial matching time is applied to untrusted input, causing excessive CPU use.
  2. Which versions of marked are affected by GHSA-CH52-VGQ2-943F? marked (npm) versions >= 0.4.0, < 0.7.0 is affected.
  3. Is there a fix for GHSA-CH52-VGQ2-943F? Yes. GHSA-CH52-VGQ2-943F is fixed in 0.7.0. Upgrade to this version or later.
  4. Is GHSA-CH52-VGQ2-943F exploitable, and should I be worried? Whether GHSA-CH52-VGQ2-943F is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether GHSA-CH52-VGQ2-943F is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix GHSA-CH52-VGQ2-943F? Upgrade marked to 0.7.0 or later.

Other vulnerabilities in marked

Stop the waste.
Protect your environment with Kodem.