# CVE-2025-59717: @digitalocean/do-markdownit has Type Confusion vulnerability

- Severity: Medium 5.4 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-09-19T00:00:00.000Z
- Modified: 2026-06-17T09:46:35.680Z
- Also known as: GHSA-2h8j-8r9p-849f
- Weaknesses: CWE-843
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- DigitalOcean @digitalocean/do-markdownit: up to 1.16.1
- @digitalocean/do-markdownit (npm): up to 1.16.1
- digitalocean do-markdownit: up to 1.16.1

## Every score

- mitre: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://gist.github.com/thesmartshadow/dd19665f1f51a4e3c7a766e70c9eafd0> (exploit, third-party-advisory, web)
- <https://github.com/digitalocean/do-markdownit> (package, product)
- <https://www.npmjs.com/package/@digitalocean/do-markdownit> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59717> (advisory)

## Sources

- CVE List: [CVE-2025-59717](https://www.cve.org/CVERecord?id=CVE-2025-59717), CVE Terms of Use, modified 2025-09-19
- GitHub Advisory Database: [GHSA-2h8j-8r9p-849f](https://github.com/advisories/GHSA-2h8j-8r9p-849f), CC-BY-4.0, modified 2025-09-22
- NVD: [CVE-2025-59717](https://nvd.nist.gov/vuln/detail/CVE-2025-59717), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-59717 · Whole record: https://cve.day/CVE-2025-59717.json · Rebuilt by cve.day 2026-11-25T22:59:04.847Z
