Skip to main content
VulnerabilityPublished

CVE-2025-59717: @digitalocean/do-markdownit · Type Confusion

Affects @digitalocean/do-markdownitSource CVE Database V5

0

Not known to be exploited · CVSS 5.4 Medium.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 3.1 base score
5.4Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 32% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 19 Sep 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
DigitalOcean @digitalocean/do-markdownitAffected
  • =0
Fixed in–

AI-suggested

To mitigate CVE-2025-59717, European organizations should first audit their software dependencies to identify usage of the @digitalocean/do-markdownit package, especially versions up to 1.16.1. Until an official patch is released, organizations should enforce strict type checking on configuration parameters allowedClasses and allowedEnvironments, ensuring they are always arrays rather than strings. This can be done by implementing validation logic in the application code that wraps or configures the Markdown parser. Additionally, input sanitization and output encoding should be strengthened around Markdown content rendering to prevent injection attacks. Monitoring and logging of Markdown processing errors or anomalies can help detect exploitation attempts. Organizations should subscribe to DigitalOcean and npm security advisories for timely patch releases and apply updates promptly. Where feasible, consider isolating Markdown rendering processes or using alternative libraries with no known vulnerabilities. Finally, conduct security testing focusing on Markdown input handling to identify potential exploitation paths.

Description

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).

References

Community reviews

Loading reviews…