CVE-2019-12041: Regular Expression Denial of Service in remarkable
Summary
CVE-2019-12041: Regular Expression Denial of Service in remarkable. Affects remarkable versions < 1.7.2. Fixed in 1.7.2. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The package under scrutiny is remarkable, an npm package used for parsing and rendering Markdown. It provides a simple and efficient way to convert Markdown syntax into HTML. The vulnerability in question is related to the handling of CDATA sections in the HTML rendering process.
Vulnerability Detail
The vulnerability, identified as CVE-2019-12041, is a Regular Expression Denial of Service (ReDoS) issue. It originates from the lib/common/html_re.js file in remarkable version 1.7.1. By exploiting this vulnerability, an attacker can cause a denial of service by providing specially crafted input that triggers excessive backtracking in the regular expression engine. This can lead to a significant degradation in performance or even a complete system freeze. The severity of this vulnerability is rated as HIGH with a CVSS score of 7.5.
How To Fix
Latest published version: 2.0.1 as of 23 Oct 2026
npm install remarkable@2.0.1
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
1.7.2
This is the first release that contains the fix.
npm install remarkable@1.7.2
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a workaround, if upgrading the package is not immediately feasible, developers can consider implementing input validation and sanitization measures to mitigate the risk of exploitation. By carefully validating and sanitizing user input, it is possible to prevent the triggering of the vulnerable regular expression pattern.
Conclusion
In conclusion, the remarkable package version 1.7.1 is vulnerable to a Regular Expression Denial of Service (ReDoS) issue. To mitigate this vulnerability, it is crucial to upgrade to version 1.7.2 or later. Alternatively, implementing input validation and sanitization measures can provide a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for remarkable →
FAQ
Remarkable is an npm package used for parsing and rendering Markdown. It simplifies the conversion of Markdown syntax into HTML.
ReDoS is a type of vulnerability that occurs when a regular expression pattern can be exploited to cause excessive backtracking, leading to a denial of service. It can result in a significant degradation in performance or system freeze.
The vulnerability in remarkable allows an attacker to trigger excessive backtracking in the regular expression engine by providing specially crafted input. This can lead to a denial of service, causing performance degradation or system freeze.
The severity of this vulnerability is rated as HIGH with a CVSS score of 7.5.
To fix this vulnerability, it is recommended to upgrade the remarkable package to version 1.7.2 or later. This version includes a fix for the ReDoS issue in the HTML rendering code.
References
Related vulnerabilities
Recent vulnerabilities recorded for remarkable.