{"api_version":"1","generated_at":"2026-05-16T00:55:37+00:00","cve":"CVE-2022-21681","urls":{"html":"https://cve.report/CVE-2022-21681","api":"https://cve.report/api/cve/CVE-2022-21681.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-21681","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-21681"},"summary":{"title":"CVE-2022-21681","description":"Marked is a markdown parser and compiler. Prior to version 4.0.10, the regular expression `inline.reflinkSearch` may cause catastrophic backtracking against some strings and lead to a denial of service (DoS). 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://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://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-5v2h-r2cx-5xgj","name":"https://github.com/markedjs/marked/security/advisories/GHSA-5v2h-r2cx-5xgj","refsource":"CONFIRM","tags":[],"title":"Exponential catastrophic backtracking (ReDoS) in `inline.reflinkSearch` · Advisory · markedjs/marked · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"503"},{"url":"https://github.com/markedjs/marked/commit/8f806573a3f6c6b7a39b8cdb66ab5ebb8d55a5f5","name":"https://github.com/markedjs/marked/commit/8f806573a3f6c6b7a39b8cdb66ab5ebb8d55a5f5","refsource":"MISC","tags":[],"title":"fix(security): fix redos vulnerabilities · markedjs/marked@8f80657 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"503"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-21681","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21681","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"21681","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":"21681","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-21681","qid":"184683","title":"Debian Security Update for node-marked (CVE-2022-21681)"},{"cve":"CVE-2022-21681","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-21681","STATE":"PUBLIC","TITLE":"Exponential 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 `inline.reflinkSearch` may cause catastrophic backtracking against some strings and lead to a denial of service (DoS). 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-5v2h-r2cx-5xgj","refsource":"CONFIRM","url":"https://github.com/markedjs/marked/security/advisories/GHSA-5v2h-r2cx-5xgj"},{"name":"https://github.com/markedjs/marked/commit/8f806573a3f6c6b7a39b8cdb66ab5ebb8d55a5f5","refsource":"MISC","url":"https://github.com/markedjs/marked/commit/8f806573a3f6c6b7a39b8cdb66ab5ebb8d55a5f5"},{"refsource":"FEDORA","name":"FEDORA-2022-784d729f30","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AIXDMC3CSHYW3YWVSQOXAWLUYQHAO5UX/"}]},"source":{"advisory":"GHSA-5v2h-r2cx-5xgj","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":"21681","Ordinal":"221421","Title":"CVE-2022-21681","CVE":"CVE-2022-21681","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"21681","Ordinal":"1","NoteData":"Marked is a markdown parser and compiler. Prior to version 4.0.10, the regular expression `inline.reflinkSearch` may cause catastrophic backtracking against some strings and lead to a denial of service (DoS). 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":"21681","Ordinal":"2","NoteData":"2022-01-14","Type":"Other","Title":"Published"},{"CveYear":"2022","CveId":"21681","Ordinal":"3","NoteData":"2022-01-14","Type":"Other","Title":"Modified"}]}}}