CVE-2015-8854: Regular Expression Denial of Service in marked

marked Updated 02 Oct 2025

Summary

24/10/2017
Yes i
High
7.5

CVE-2015-8854: Regular Expression Denial of Service in marked. Affects marked versions < 0.3.4. Fixed in 0.3.4. How to fix ↓

Also tracked for

The same CVE-2015-8854 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The marked package is an open-source library for parsing and rendering Markdown. It is commonly used in web applications to convert Markdown syntax into HTML. The package provides a simple and efficient way to process Markdown content and display it on websites. However, versions 0.3.3 and earlier of marked are vulnerable to a regular expression denial of service (ReDoS) attack when certain inputs are passed to the em inline rule.

Vulnerability Detail

The vulnerability in marked arises from a regular expression pattern used in the em inline rule. This pattern can be exploited by an attacker to cause a denial of service (DoS) by providing a specially crafted input that triggers excessive backtracking in the regular expression engine. This can lead to a significant slowdown or even freezing of the application, rendering it unresponsive. The impact of this vulnerability can be severe, as it allows an attacker to disrupt the availability of the affected application.

How To Fix

Minimum fixed version

0.3.4

This is the first release that contains the fix.

npm install marked@0.3.4

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround provided for this vulnerability. The recommended solution is to update to the latest version of the marked package.

Conclusion

The marked package versions 0.3.3 and earlier are vulnerable to a regular expression denial of service (ReDoS) attack. This can lead to a denial of service (DoS) situation where the application becomes unresponsive. To mitigate this vulnerability, it is crucial to update to version 0.3.4 or later of the marked package. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for marked →

Share this vulnerability

FAQ

The vulnerability allows an attacker to cause a denial of service (DoS) by exploiting the regular expression pattern used in the marked package. This can lead to a significant slowdown or freezing of the application, rendering it unresponsive.

Versions 0.3.3 and earlier of marked are affected by this vulnerability.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your package-lock.json file, and Vulert will analyze it in real-time and alert you if any open-source vulnerabilities, including this one, are found.

Yes, updating to version 0.3.4 or later of the marked package fixes this vulnerability. It is recommended to update to the latest version to ensure the security of your application.

Related vulnerabilities

Recent vulnerabilities recorded for marked.

How To Fix

Minimum fixed version

0.3.4

This is the first release that contains the fix.

npm install marked@0.3.4

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback