CVE-2025-59717
Digitalocean Do-markdownit vulnerability
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).
Affected products
Do-markdownit. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Digitalocean Do-markdownit runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- gist.github.com/thesmartshadow/dd19665f1f51a4e3c7a766e70c9eafd0 · Exploit
- github.com/digitalocean/do-markdownit
- www.npmjs.com/package/@digitalocean/do-markdownit
- nvd.nist.gov/vuln/detail/CVE-2025-59717
- github.com/advisories/GHSA-2h8j-8r9p-849f
- nvd.nist.gov/vuln/detail/CVE-2025-59717
- cve.org/CVERecord?id=CVE-2025-59717
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.