CVE-2015-10005: Markdown it Markdown-it Vulnerable To Inefficient Regular Vulnerability
HIGHCVE-2015-10005 is a HIGH (CVSS 7.5) markdown-it vulnerable to inefficient regular vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Markdown it libraries in the npm ecosystem. The issue involves markdown-it vulnerable to inefficient regular expression complexity. Remediation is available by upgrading affected packages to version 3.0.0.
CVE-2015-10005 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2015-10005
To remediate this vulnerability, upgrade all affected Markdown it dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install markdown-it@3.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls markdown-it
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2015-10005, inspect your project dependencies using npm:
npm ls markdown-it
Analyze the terminal output to locate any version of Markdown it in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.0), your application is affected.
Note: The npm ls markdown-it command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Markdown it, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2015-10005 Affected Markdown it Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
markdown-it
|
npm |
< 3.0.0
|
3.0.0
|
References
Frequently Asked Questions
What is CVE-2015-10005?
Which Markdown it versions are affected?
What version fixes CVE-2015-10005?
Is markdown-it affected?
What is the CVSS score of CVE-2015-10005?
What CWE is associated with CVE-2015-10005?
How can I check npm dependencies for CVE-2015-10005?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j5p7-jf4q-742q",
"modified" : "2023-01-10T15:38:01Z",
"published" : "2022-12-27T09:30:41Z",
"aliases" : [ "CVE-2015-10005" ],
"summary" : "markdown-it vulnerable to Inefficient Regular Expression Complexity",
"details" : "A vulnerability was found in markdown-it up to 2.x. It has been classified as problematic. Affected is an unknown function of the file `lib/common/html_re.js`. The manipulation leads to inefficient regular expression complexity. Upgrading to version 3.0.0 is able to address this issue. The name of the patch is 89c8620157d6e38f9872811620d25138fc9d1b0d. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-216852.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "markdown-it"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-10005"
}, {
"type" : "WEB",
"url" : "https://github.com/markdown-it/markdown-it/commit/89c8620157d6e38f9872811620d25138fc9d1b0d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/markdown-it/markdown-it"
}, {
"type" : "WEB",
"url" : "https://github.com/markdown-it/markdown-it/releases/tag/3.0.0"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.216852"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.216852"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-30T16:27:08Z",
"nvd_published_at" : "2022-12-27T09:15:00Z"
}
}