CVE-2025-59717: @digitalocean/do-markdownit · Type Confusion
Affects @digitalocean/do-markdownitSource CVE Database V5
Not known to be exploited · CVSS 5.4 Medium.
Data as of 26 Oct 2026, 12:55 UTC
- 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:NExploitation evidence
Disclosed: evidence found.
CVE published 19 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
| DigitalOcean @digitalocean/do-markdownit | Affected
| 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).