{"answers":{"affected":"2 open source packages ship an affected version, including @digitalocean/do-markdownit. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59717 exists.","fix":"No fix has been published for CVE-2025-59717 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-59717 is a medium-severity vulnerability in @digitalocean/do-markdownit, published on 19 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-59717 and fix it if it is affected.\n\nWhat it is: CVE-2025-59717 is a medium-severity vulnerability in @digitalocean/do-markdownit, published on 19 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59717 exists.\n\nAffected packages and fixed versions:\n- @digitalocean/do-markdownit (npm): affected all versions up to 1.16.1; no fix listed\n- @digitalocean/do-markdownit (npm): affected all versions up to 1.16.1; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-59717/ (Markdown: https://insights.sbomify.com/CVE-2025-59717/index.md)","id":"CVE-2025-59717","markdown":"https://insights.sbomify.com/CVE-2025-59717/index.md","name":"CVE-2025-59717","record":{"aliases":["GHSA-2h8j-8r9p-849f"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Markdown rendering library","requires_auth":"none","summary":"An attacker can bypass allowed class/environment restrictions in the markdown renderer by exploiting substring matching logic when string configurations are used.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"do-markdownit","vendor":"digitalocean"}],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-843","name":"Access of Resource Using Incompatible Type"}],"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).","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"@digitalocean/do-markdownit has Type Confusion vulnerability","id":"CVE-2025-59717","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"security_feature_bypass","year":"2025"},"n_packages":2,"n_references":3,"next":{"headline":"Fortinet Multiple Products Improper Verification of Cryptographic Signature","id":"CVE-2025-59718"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["1.16.1"],"package":"@digitalocean/do-markdownit","purl":null,"source":"GHSA-2h8j-8r9p-849f"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["1.16.1"],"package":"@digitalocean/do-markdownit","purl":"pkg:npm/%40digitalocean/do-markdownit","source":"GHSA-2h8j-8r9p-849f"}],"prev":{"headline":"Information disclosure in n/a","id":"CVE-2025-59716"},"products":["@digitalocean/do-markdownit"],"published":"2025-09-19","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-09-19","vendors":["DigitalOcean"]},"summary":"An attacker can bypass allowed class/environment restrictions in the markdown renderer by exploiting substring matching logic when string configurations are used.","url":"https://insights.sbomify.com/CVE-2025-59717/"}