Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2025-59717

In the @digitalocean/do-markdownit package through 1.16.1 (in npm), the callout and fence_environment plugins perform .includes substring matching if allowedClasses or allowedEnvironments is a string (instead of an array).

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-59717
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 10:54 UTC · Revision 1

Source evidence

CVE-2025-59717

core-osv · Original source

Published 19 Sept 2025, 00:00 UTC

In the @digitalocean/do-markdownit package through 1.16.1 (in npm), the callout and fence_environment plugins perform .includes substring matching if allowedClasses or allowedEnvironments is a string (instead of an array).

osv:CVE-2025-59717
Complete source record
{
  "id": "12969c66694174e2159f92b0447a67ca47c2d0284e0a260b330d97dbf3c16592",
  "url": "https://osv.dev/vulnerability/CVE-2025-59717",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2025-59717",
    "summary": "In the @digitalocean/do-markdownit package through 1.16.1 (in npm), the callout and fence_environment plugins perform .includes substring matching if allowedClasses or allowedEnvironments is a string (instead of an array).",
    "evidence": "osv:CVE-2025-59717",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-59717",
      "aliases": [
        "CVE-2025-59717",
        "GHSA-2h8j-8r9p-849f"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/digitalocean/do-markdownit",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "31d5edfb92596ec6ed5c5843c72e06c91c810ed1"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.16.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "cpe": "cpe:2.3:a:digitalocean:do-markdownit:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "1.16.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.16.1",
            "v1.16.0",
            "v1.15.0",
            "v1.14.0",
            "v1.13.0",
            "v1.12.6",
            "v1.12.5",
            "v1.12.4",
            "v1.12.3",
            "v1.12.2",
            "v1.12.1",
            "v1.12.0",
            "v1.11.0",
            "v1.10.0",
            "v1.9.0",
            "v1.8.0",
            "v1.7.1",
            "v1.7.0",
            "v1.6.1",
            "v1.6.0",
            "v1.5.1",
            "v1.5.0",
            "v1.4.0",
            "v1.3.3",
            "v1.3.2",
            "v1.3.1",
            "v1.3.0",
            "v1.2.1",
            "v1.2.0",
            "v1.1.0",
            "v1.0.3",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-59717.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:28.018095677Z",
      "provider": "osv",
      "references": [
        "https://gist.github.com/thesmartshadow/dd19665f1f51a4e3c7a766e70c9eafd0",
        "https://www.npmjs.com/package/@digitalocean/do-markdownit",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59717.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-59717",
        "https://github.com/digitalocean/do-markdownit"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-843"
        ],
        "cna_assigner": "mitre",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59717.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-59717",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 494745,
  "published_at": "2025-09-19T00:00:00+00:00"
}