Skip to content
Heist/ feed
Back to feed
Medium

node-markdown-it — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-48988

markdown-it is a Markdown parser. Versions 14.1.1 and below contain a denial-of-service vulnerability when typographer: true is enabled, due to quadratic (O(n^2)) processing in the smartquotes rule. The issue stems from repeatedly modifying strings with replaceAt(), which performs O(n) slicing and concatenation per quote character. This can cause excessive CPU consumption when parsing quote-heavy, user-supplied markdown and may let attackers degrade or disrupt service availability. Although typographer is disabled by default, many production apps enable it for smart typography, making the issue relevant. This issue has been fixed in version 14.2.0.

Products
node-markdown-it
Affected versions
10.0.0+dfsg-2, 10.0.0+dfsg-3, 10.0.0+dfsg-3.1, 10.0.0+dfsg-4, 10.0.0+dfsg-5, 10.0.0+dfsg-6, 22.2.3+dfsg+~12.2.3-2, 22.2.3+dfsg+~12.2.3-4, 22.2.3+dfsg+~12.2.3-5
Fixed versions
Not specified
CVEs
CVE-2026-48988
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:07 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-48988

core-osv · Original source

Published 17 Jun 2026, 21:16 UTC

markdown-it is a Markdown parser. Versions 14.1.1 and below contain a denial-of-service vulnerability when typographer: true is enabled, due to quadratic (O(n^2)) processing in the smartquotes rule. The issue stems from repeatedly modifying strings with replaceAt(), which performs O(n) slicing and concatenation per quote character. This can cause excessive CPU consumption when parsing quote-heavy, user-supplied markdown and may let attackers degrade or disrupt service availability. Although typographer is disabled by default, many production apps enable it for smart typography, making the issue relevant. This issue has been fixed in version 14.2.0.

osv:UBUNTU-CVE-2026-48988

node-markdown-it

Fixed versions: Not specified

node-markdown-it

Fixed versions: Not specified

node-markdown-it

Fixed versions: Not specified

node-markdown-it

Fixed versions: Not specified

node-markdown-it

Fixed versions: Not specified

Complete source record
{
  "id": "aa9fff7495f91c34a9b83765b622a3bceddacb34dbdafd9e16c1129f616004e0",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-48988",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-48988",
    "summary": "markdown-it is a Markdown parser. Versions 14.1.1 and below contain a denial-of-service vulnerability when typographer: true is enabled, due to quadratic (O(n^2)) processing in the smartquotes rule. The issue stems from repeatedly modifying strings with replaceAt(), which performs O(n) slicing and concatenation per quote character. This can cause excessive CPU consumption when parsing quote-heavy, user-supplied markdown and may let attackers degrade or disrupt service availability. Although typographer is disabled by default, many production apps enable it for smart typography, making the issue relevant. This issue has been fixed in version 14.2.0.",
    "evidence": "osv:UBUNTU-CVE-2026-48988",
    "products": [
      {
        "name": {
          "value": "node-markdown-it",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "10.0.0+dfsg-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "10.0.0+dfsg-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "10.0.0+dfsg-3.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "10.0.0+dfsg-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "10.0.0+dfsg-5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "10.0.0+dfsg-6",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-markdown-it",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "22.2.3+dfsg+~12.2.3-2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-markdown-it",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "22.2.3+dfsg+~12.2.3-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-markdown-it",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "22.2.3+dfsg+~12.2.3-4",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "22.2.3+dfsg+~12.2.3-5",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-markdown-it",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "22.2.3+dfsg+~12.2.3-2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "22.2.3+dfsg+~12.2.3-4",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-48988",
      "aliases": [
        "UBUNTU-CVE-2026-48988"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-markdown-it",
            "purl": "pkg:deb/ubuntu/node-markdown-it?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "10.0.0+dfsg-2",
            "10.0.0+dfsg-3",
            "10.0.0+dfsg-3.1",
            "10.0.0+dfsg-4",
            "10.0.0+dfsg-5",
            "10.0.0+dfsg-6"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48988.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-markdown-it",
                "binary_version": "10.0.0+dfsg-6"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-markdown-it",
            "purl": "pkg:deb/ubuntu/node-markdown-it?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "22.2.3+dfsg+~12.2.3-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48988.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-markdown-it",
                "binary_version": "22.2.3+dfsg+~12.2.3-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-markdown-it",
            "purl": "pkg:deb/ubuntu/node-markdown-it?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "22.2.3+dfsg+~12.2.3-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48988.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-markdown-it",
                "binary_version": "22.2.3+dfsg+~12.2.3-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-markdown-it",
            "purl": "pkg:deb/ubuntu/node-markdown-it?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "22.2.3+dfsg+~12.2.3-4",
            "22.2.3+dfsg+~12.2.3-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48988.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-markdown-it",
                "binary_version": "22.2.3+dfsg+~12.2.3-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-markdown-it",
            "purl": "pkg:deb/ubuntu/node-markdown-it?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "22.2.3+dfsg+~12.2.3-2",
            "22.2.3+dfsg+~12.2.3-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-48988.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-markdown-it",
                "binary_version": "22.2.3+dfsg+~12.2.3-4"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:23.956565532Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-48988"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-48988",
        "https://www.cve.org/CVERecord?id=CVE-2026-48988",
        "https://github.com/markdown-it/markdown-it/security/advisories/GHSA-6v5v-wf23-fmfq",
        "https://github.com/markdown-it/markdown-it/commit/9ce2087562c45d1e5ddd9f76b990f4b3fbe040e5"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-48988",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360495,
  "published_at": "2026-06-17T21:16:00+00:00"
}