{"api_version":"1","generated_at":"2026-05-16T00:54:46+00:00","cve":"CVE-2022-21680","urls":{"html":"https://cve.report/CVE-2022-21680","api":"https://cve.report/api/cve/CVE-2022-21680.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-21680","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-21680"},"summary":{"title":"CVE-2022-21680","description":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-01-14 17:15:00","updated_at":"2023-11-07 03:43:00"},"problem_types":["CWE-1333"],"metrics":[],"references":[{"url":"https://github.com/markedjs/marked/releases/tag/v4.0.10","name":"https://github.com/markedjs/marked/releases/tag/v4.0.10","refsource":"MISC","tags":[],"title":"Release v4.0.10 · markedjs/marked · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AIXDMC3CSHYW3YWVSQOXAWLUYQHAO5UX/","name":"FEDORA-2022-784d729f30","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 36 Update: gitqlient-1.5.0-2.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/markedjs/marked/commit/c4a3ccd344b6929afa8a1d50ac54a721e57012c0","name":"https://github.com/markedjs/marked/commit/c4a3ccd344b6929afa8a1d50ac54a721e57012c0","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-rrrm-qjm4-v8hf · markedjs/marked@c4a3ccd · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"503"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AIXDMC3CSHYW3YWVSQOXAWLUYQHAO5UX/","name":"FEDORA-2022-784d729f30","refsource":"","tags":[],"title":"[SECURITY] Fedora 36 Update: gitqlient-1.5.0-2.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/markedjs/marked/security/advisories/GHSA-rrrm-qjm4-v8hf","name":"https://github.com/markedjs/marked/security/advisories/GHSA-rrrm-qjm4-v8hf","refsource":"CONFIRM","tags":[],"title":"Cubic catastrophic backtracking (ReDoS) in `block.def` · Advisory · markedjs/marked · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"503"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-21680","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21680","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"21680","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"36","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"21680","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"marked_project","cpe5":"marked","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-21680","qid":"184347","title":"Debian Security Update for node-marked (CVE-2022-21680)"},{"cve":"CVE-2022-21680","qid":"283195","title":"Fedora Security Update for gitqlient (FEDORA-2022-784d729f30)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-21680","STATE":"PUBLIC","TITLE":"Cubic catastrophic backtracking (ReDoS) in marked"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"marked","version":{"version_data":[{"version_value":"< 4.0.10"}]}}]},"vendor_name":"markedjs"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-400: Uncontrolled Resource Consumption"}]},{"description":[{"lang":"eng","value":"CWE-1333: Inefficient Regular Expression Complexity"}]}]},"references":{"reference_data":[{"name":"https://github.com/markedjs/marked/security/advisories/GHSA-rrrm-qjm4-v8hf","refsource":"CONFIRM","url":"https://github.com/markedjs/marked/security/advisories/GHSA-rrrm-qjm4-v8hf"},{"name":"https://github.com/markedjs/marked/commit/c4a3ccd344b6929afa8a1d50ac54a721e57012c0","refsource":"MISC","url":"https://github.com/markedjs/marked/commit/c4a3ccd344b6929afa8a1d50ac54a721e57012c0"},{"name":"https://github.com/markedjs/marked/releases/tag/v4.0.10","refsource":"MISC","url":"https://github.com/markedjs/marked/releases/tag/v4.0.10"},{"refsource":"FEDORA","name":"FEDORA-2022-784d729f30","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AIXDMC3CSHYW3YWVSQOXAWLUYQHAO5UX/"}]},"source":{"advisory":"GHSA-rrrm-qjm4-v8hf","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-01-14 17:15:00","lastModifiedDate":"2023-11-07 03:43:00","problem_types":["CWE-1333"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"PARTIAL","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:marked_project:marked:*:*:*:*:*:node.js:*:*","versionEndExcluding":"4.0.10","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"21680","Ordinal":"221431","Title":"CVE-2022-21680","CVE":"CVE-2022-21680","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"21680","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2022","CveId":"21680","Ordinal":"2","NoteData":"2022-01-14","Type":"Other","Title":"Published"},{"CveYear":"2022","CveId":"21680","Ordinal":"3","NoteData":"2022-01-14","Type":"Other","Title":"Modified"}]}}}