Skip to main content
Vulnerability Database/CVE-2026-103043

CVE-2026-103043: anchorme Library ReDoS Vulnerability

CVE-2026-103043 is a regular expression denial of service flaw in anchorme library that allows attackers to block the Node.js event loop through crafted input. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-103043 Overview

CVE-2026-103043 is a regular expression denial of service (ReDoS) vulnerability affecting the anchorme Node.js library through version 3.0.8. The flaw resides in the IPv6 host extraction regular expression, which exhibits catastrophic backtracking when processing crafted input. Attackers can submit strings containing repeated patterns that force the regex engine into exponential time complexity. This blocks the Node.js single-threaded event loop and prevents the process from servicing other requests. The weakness is classified under CWE-1333: Inefficient Regular Expression Complexity.

Critical Impact

A single malicious input can stall a Node.js worker indefinitely, resulting in service-wide denial of service for any application that passes user-controlled text through anchorme for URL detection.

Affected Products

  • anchorme npm package, all versions through 3.0.8
  • Node.js applications that invoke anchorme on untrusted input
  • Web services that render user-generated content processed by anchorme

Discovery Timeline

  • 2026-09-29 - CVE-2026-103043 published to the National Vulnerability Database
  • 2026-09-29 - Last updated in NVD database

Technical Details for CVE-2026-103043

Vulnerability Analysis

The anchorme library scans free-form text and converts detected URLs, email addresses, and IP addresses into clickable anchor elements. As part of URL parsing, it applies a regular expression to extract IPv6 host components. The regex contains overlapping quantifiers that permit multiple parsing paths for the same input segment. When the input almost matches but ultimately fails, the engine backtracks through every combination, producing execution time that scales exponentially with input length.

Because Node.js executes JavaScript on a single event-loop thread, any synchronous regex evaluation halts all other request handling in the same process. A remote attacker without authentication can submit a request containing the crafted string and monopolize CPU on the worker. Additional concurrent inputs compound the effect and can take down the service. Refer to the VulnCheck advisory for anchorme and the proof-of-concept gist for the exact payload structure.

Root Cause

The vulnerable pattern is defined in the anchorme source at src/index.ts line 109. The IPv6 extraction regex uses ambiguous character classes with unbounded repetition, producing the classical ReDoS antipattern where the same substring can be matched by multiple sub-expressions.

Attack Vector

Exploitation requires only the ability to submit text that reaches an anchorme invocation. Typical entry points include comment fields, chat messages, form submissions, webhook payloads, and API bodies. No authentication, privilege, or user interaction is required. Each malicious request consumes an event-loop worker until the regex evaluation completes or the process is terminated.

No verified exploitation code is republished here. See the GitHub gist proof-of-concept and the anchorme.js project for reproduction details.

Detection Methods for CVE-2026-103043

Indicators of Compromise

  • Sustained 100% CPU utilization on a single Node.js worker process without corresponding traffic volume
  • HTTP request bodies or query parameters containing long repeating character sequences that resemble malformed IPv6 literals
  • Application logs showing request handlers timing out shortly after receiving user-generated text destined for URL parsing

Detection Strategies

  • Inventory Node.js dependencies with npm ls anchorme and flag any installation at version 3.0.8 or earlier
  • Enable event-loop lag monitoring in Node.js runtimes and alert when lag exceeds normal baselines
  • Instrument request handlers with per-request execution timers to identify inputs that trigger disproportionate CPU consumption

Monitoring Recommendations

  • Forward Node.js process metrics, request latency, and web server access logs to a centralized analytics platform for correlation
  • Establish alerting on repeated slow requests originating from the same source IP or user agent
  • Track anomalous spikes in 5xx responses or upstream timeouts that coincide with text-processing endpoints

How to Mitigate CVE-2026-103043

Immediate Actions Required

  • Audit all applications and internal services for the anchorme npm package and identify versions at or below 3.0.8
  • Restrict the maximum length of user-supplied strings that reach anchorme to a value that keeps worst-case regex evaluation within acceptable bounds
  • Place rate limiting and request size caps in front of endpoints that process user-generated text

Patch Information

At the time of publication, no fixed release is listed in the VulnCheck advisory. Monitor the anchorme.js GitHub repository and the npm package page for a version above 3.0.8 that replaces the IPv6 extraction regex.

Workarounds

  • Pre-validate input length and reject strings that exceed the size required by legitimate use cases before invoking anchorme
  • Execute anchorme inside a worker thread with a strict timeout, terminating the worker if processing exceeds the budget
  • Substitute a hardened URL extraction library or a linear-time parser until an upstream fix is released
bash
# Configuration example: enforce input length and worker timeout
# 1. Verify installed version
npm ls anchorme

# 2. Reject oversized input before parsing (Express example)
#    app.use((req, res, next) => {
#      if (req.body?.text && req.body.text.length > 2048) {
#        return res.status(413).send('input too large');
#      }
#      next();
#    });

# 3. Run anchorme in a worker_thread with a hard timeout to prevent event-loop stalls

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.