High
Security advisory
Marked is an open-source markdown parser and compiler (npm package "marked"). In marked from version 1.1.1 and before version 2.0.0, there is a Regular expression Denial of Service vulnerability. This vulnerability can affect anyone who runs user generated code through marked. This vulnerability is fixed in version 2.0.0.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-21306
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:32 UTC · Revision 1
Source evidence
Marked is an open-source markdown parser and compiler (npm package "marked"). In marked from version 1.1.1 and before version 2.0.0, there is a Regular expression Denial of Service vulnerability. This vulnerability can affect anyone who runs user generated code through marked. This vulnerability is fixed in version 2.0.0.
osv:CVE-2021-21306
Complete source record
{
"id": "2237de6dcc94157916cce5c736359ad853e6dff185947f167d1ccb24e178cf14",
"url": "https://osv.dev/vulnerability/CVE-2021-21306",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-21306",
"summary": "Marked is an open-source markdown parser and compiler (npm package \"marked\"). In marked from version 1.1.1 and before version 2.0.0, there is a Regular expression Denial of Service vulnerability. This vulnerability can affect anyone who runs user generated code through marked. This vulnerability is fixed in version 2.0.0.",
"evidence": "osv:CVE-2021-21306",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-21306",
"aliases": [
"CVE-2021-21306",
"GHSA-4r62-v4vq-hr96"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/markedjs/marked",
"type": "GIT",
"events": [
{
"introduced": "1ad8e69e9b959d0be03e6a345767daad28993f5d"
},
{
"fixed": "8a7502f54fcc236027ae38e5432c4caf30accf23"
},
{
"fixed": "7293251c438e3ee968970f7609f1a27f9007bccd"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:marked_project:marked:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "1.1.1"
},
{
"fixed": "2.0.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "7293251c438e3ee968970f7609f1a27f9007bccd"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.2.9",
"v1.2.8",
"v1.2.7",
"v1.2.6",
"v1.2.5",
"v1.2.4",
"v1.2.3",
"v1.2.2",
"v1.2.1",
"v1.1.2",
"v1.20",
"v1.1.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21306.json"
}
}
],
"modified": "2026-10-20T10:54:28.017234849Z",
"provider": "osv",
"references": [
"https://github.com/markedjs/marked/issues/1927",
"https://github.com/markedjs/marked/security/advisories/GHSA-4r62-v4vq-hr96",
"https://www.npmjs.com/package/marked",
"https://github.com/markedjs/marked/commit/7293251c438e3ee968970f7609f1a27f9007bccd",
"https://github.com/markedjs/marked/pull/1864"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-21306",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385397,
"published_at": "2021-02-08T22:15:12.45+00:00"
}