CVE-2025-59717 Details
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).
A vulnerability allowing authorization bypass has been identified in the @digitalocean/do-markdownit package, specifically in versions through 1.16.1. The issue arises in the callout and fence_environment plugins, which improperly handle substring matching when the allowedClasses or allowedEnvironments parameters are provided as strings instead of arrays. This flaw enables attackers to circumvent restrictions and inject unauthorized classes or environments, potentially leading to privilege escalation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 19, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/thesmartshadow/dd19665f1f51a4e3c7a766e70c9eafd0 | CISA-ADP | ExploitThird Party Advisory |
| https://gist.github.com/thesmartshadow/dd19665f1f51a4e3c7a766e70c9eafd0 | [email protected] | ExploitThird Party Advisory |
| https://github.com/digitalocean/do-markdownit | [email protected] | Product |
| https://www.npmjs.com/package/@digitalocean/do-markdownit | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-Other | Weakness Not in a Standard CWE Category | [email protected] |
| CWE-843 | Access of Resource Using Incompatible Type ('Type Confusion') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| digitalocean do-markdownit | <= 1.16.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 8, 2025 | Initial Analysis | [email protected] |
| Sep 19, 2025 | CVE Modified | CISA-ADP |
| Sep 19, 2025 | New CVE Received | [email protected] |