{"answers":{"affected":"2 open source packages ship an affected version, including linkify-it. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-59887 exists.","fix":"Upgrade linkify-it to 5.0.2 or later.","what":"CVE-2026-59887 is a high-severity denial of service vulnerability in markdown-it linkify-it, published on 8 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-59887 and fix it if it is affected.\n\nWhat it is: CVE-2026-59887 is a high-severity denial of service vulnerability in markdown-it linkify-it, published on 8 Jul 2026. 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-2026-59887 exists.\n\nAffected packages and fixed versions:\n- linkify-it (npm): affected all versions; fixed in 5.0.2\n- linkify-it (npm): affected all versions; fixed in 5.0.2\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-2026-59887/ (Markdown: https://insights.sbomify.com/CVE-2026-59887/index.md)","id":"CVE-2026-59887","markdown":"https://insights.sbomify.com/CVE-2026-59887/index.md","name":"CVE-2026-59887","record":{"aliases":["CLEANSTART-2026-EA45070","CLSA-2026-1784682996","CLSA-2026-1784856031","CLSA-2026-1790520316","CLSA-2026-1792489196","CLSA-2026-1792489445","ECHO-2a18-3409-3ab7","GHSA-v245-v573-v5vm","MINI-3v27-v7g7-927r","MINI-435g-5mjq-xpgw","MINI-5pvq-j845-mmcf","MINI-739m-74vx-q977","MINI-85q9-cqwr-3rr9","MINI-8v54-rx2r-4h7m","MINI-c49j-xrxr-9r5j","MINI-cq48-h263-x5hp","MINI-f5x8-wmfj-9jhp","MINI-fc87-34cv-pgh2","MINI-fcjm-rf5p-53jw","MINI-gh84-c6fq-26gw","MINI-gmrx-g7fr-hmq4","MINI-gvqx-822m-2hjq","MINI-h38h-5gvx-xj38","MINI-h8wf-56hj-c43f","MINI-m5j4-3pwf-fvch","MINI-r77m-w4pr-pmmr","MINI-rf3m-2c76-cjhq","MINI-vg88-83w8-pf2f","MINI-vr6x-57gp-wmp9","MINI-wmqc-rjm8-qgrc","ROOT-APP-NPM-CVE-2026-59887"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript link recognition library","requires_auth":"none","summary":"Attackers can cause excessive CPU consumption and service disruption in applications using linkify-it by submitting crafted text with mailto links.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"linkify-it","vendor":"markdown-it"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"description":"linkify-it is a links recognition library with full Unicode support. Prior to 5.0.2, the mailto: schema validator used by .test() and .match() can be invoked at every mailto: occurrence and scan the remaining input through src_email_name in lib/re.mjs, causing O(n^2) CPU consumption on crafted user text. This issue is fixed in version 5.0.2.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"linkify-it: Quadratic-complexity DoS via the `mailto:` validator scan-loop on attacker text","id":"CVE-2026-59887","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"jackson-databind: @JsonIgnore on a Record property is bypassed with a PropertyNamingStrategy","id":"CVE-2026-59888"},"packages":[{"ecosystem":"npm","fixed":["5.0.2"],"introduced":["0"],"last_affected":[],"package":"linkify-it","purl":null,"source":"GHSA-v245-v573-v5vm"},{"ecosystem":"npm","fixed":["5.0.2"],"introduced":["0"],"last_affected":[],"package":"linkify-it","purl":"pkg:npm/linkify-it","source":"GHSA-v245-v573-v5vm"}],"prev":{"headline":"pyasn1: Uncontrolled resource consumption when converting decoded REAL values","id":"CVE-2026-59886"},"products":["linkify-it"],"published":"2026-07-08","related":[{"cvss_score":8.7,"headline":"linkify-it: Quadratic algorithmic complexity in LinkifyIt#match scan loop","id":"CVE-2026-48801","kev_date_added":null,"published":"2026-07-14"}],"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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-09","vendors":["markdown-it"]},"summary":"Attackers can cause excessive CPU consumption and service disruption in applications using linkify-it by submitting crafted text with mailto links.","url":"https://insights.sbomify.com/CVE-2026-59887/"}