Skip to main content

linkify-it EUVDEUVD-2026-42321

| CVE-2026-59887 HIGH
Inefficient Algorithmic Complexity (CWE-407)
2026-07-08 GitHub_M GHSA-v245-v573-v5vm
High
Disputed · 7.5 Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify endpoint that linkifies user text
  2. Delivery
    Craft input with many mailto: sequences
  3. Exploit
    Submit via API or form
  4. Execution
    Trigger O(n^2) src_email_name rescans
  5. Persist
    Exhaust CPU on parsing thread
  6. Impact
    Service degradation or denial

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

Exploitation requires only that the target application pass attacker-controlled text through linkify-it's .test() or .match() and that the input contain 'mailto:' occurrences whose trailing characters feed the src_email_name email-name scan; the quadratic cost scales with input length, so an attacker needs the ability to submit sufficiently long untrusted strings. Per CVSS AV:N/AC:L/PR:N/UI:N, no authentication and no user interaction are needed against any endpoint that linkifies untrusted input. Limiting factors: applications that do not run untrusted text through linkify-it, that impose strict input-length limits, or that already run on 5.0.2+ are not exploitable; impact is confined to availability (CPU exhaustion) with no data exposure or code execution.

Impact

The signals are internally consistent for a denial-of-service issue but conflict with one supplied tag. The CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (base 7.5) indicates unauthenticated, low-complexity, network-reachable exploitation with impact confined to availability only - no confidentiality or integrity loss - which matches a CPU-exhaustion bug. The supplied tag 'Information Disclosure' contradicts the vector (C:N) and appears to be a mislabel; treat this as availability/DoS, not disclosure. No EPSS score, no SSVC decision data, and no KEV or POC signal were provided, so real-world exploitation pressure is unquantified; absence of these is a data gap, not evidence of low risk. Practical priority depends on exposure: services that feed untrusted, attacker-controlled text (comment fields, chat, markdown rendering) into linkify-it face genuine, easily triggered DoS, while internal-only usage is lower priority. This is a legitimate availability concern rather than an inflated high-CVSS score, but it is not a code-execution or data-breach event.

Exploit ScenarioDerived

An attacker submits a comment, chat message, or markdown document containing many repeated 'mailto:' sequences followed by a long tail of email-name-like characters into an application that autolinks user text with linkify-it. Each mailto: occurrence forces src_email_name to rescan the remaining input, driving CPU to O(n^2) and stalling the request-handling thread, degrading or hanging the service for other users. No authentication or user interaction is required and no public exploit is identified at time of analysis, but the trigger is low-complexity and easily hand-crafted.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 08, 2026

Denial of service in linkify-it before 5.0.2 allows remote attackers to exhaust CPU by submitting crafted text containing many mailto: occurrences, each triggering the src_email_name email-name validator in lib/re.mjs to rescan the remaining input, yielding O(n^2) complexity. Any application that runs untrusted user text through linkify-it's .test() or .match() is affected; there is no public exploit identified at time of analysis and the flaw is not in CISA KEV, but the low complexity of the trigger makes availability disruption straightforward.

RemediationAI

Vendor-released patch: 5.0.2 - upgrade linkify-it to 5.0.2 or later, and rebuild/redeploy any dependents (such as markdown-it) so the transitive dependency resolves to the fixed version; the corresponding upstream fix is commit 105e5d77f7d119871d2b2d86ed208568eb3e7ffe and is documented in advisory GHSA-v245-v573-v5vm (https://github.com/markdown-it/linkify-it/security/advisories/GHSA-v245-v573-v5vm). If immediate upgrade is not possible, reduce exposure by capping the maximum length of untrusted text passed to .test()/.match() so the quadratic term stays bounded (side effect: very long legitimate inputs get truncated), and by moving linkification into a worker thread or a time-bounded/queued job so a single crafted input cannot stall the main request thread (side effect: added architectural complexity and latency). Where linkification of user content is non-essential, disabling autolinking on untrusted fields entirely removes the attack surface at the cost of losing clickable-link detection.

Affected VersionsENISA

linkify-it < 5.0.2

Affected Packages

npm linkify-it fix: 5.0.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

linkify-it is a widely embedded JavaScript URL/email autolinking library, most notably a dependency of markdown-it, used to detect links and email addresses inside arbitrary text. The root cause maps to CWE-407 (Inefficient Algorithmic Complexity): the mailto: schema validator is re-invoked at every 'mailto:' substring, and for each invocation the src_email_name regular expression in lib/re.mjs scans the remainder of the input rather than a bounded window. Repeated overlapping scans over the same tail of the string produce quadratic O(n^2) work relative to input length, so a modestly sized but adversarially structured input consumes disproportionate CPU on the parsing thread. The CPE cpe:2.3:a:markdown-it:linkify-it confirms the affected package is the markdown-it project's linkify-it.

Know when Markdown It gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Sources disagree (Low–High)
Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Untrusted text reaches the parser without auth or interaction (AV:N/AC:L/PR:N/UI:N); impact is CPU exhaustion only, so C:N/I:N and A:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 3.3 LOW
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Red Hat 7.5 HIGH

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

1
Patch available
Jul 08, 2026 - 18:02 EUVD

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 16,711 npm packages depend on linkify-it (450 direct, 16,271 indirect)

Ecosystem-wide dependent count for version 5.0.2.

Executive ViewAI

Why It Matters

linkify-it library contains a high-severity denial-of-service vulnerability (CVE-2026-59887) in email pattern validation that allows remote attackers to exhaust CPU resources through crafted input. All applications using this library's parsing functions face service disruption risk; organizations must inventory affected systems and implement interim controls immediately.

Business Impact: High
Compensating Controls

Until vendor patch available: Implement email pattern input validation with occurrence limits; enforce rate limiting on parsing operations; deploy WAF rules for malicious mailto: pattern detection; establish resource quotas (CPU/memory) on processing engines; configure anomaly detection for DoS-pattern activity.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
High
core dependency of markdown-it, used across many JavaScript apps
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Low
Product Status
SUSE Linux Enterprise High Performance Computing 12 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise Module for Web and Scripting 15 SP7 Not-Affected
SUSE Linux Enterprise Module for Web and Scripting 15 SP7 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy