Apr 9, 2026·6 min read·32 visits
A delimiter injection vulnerability in Mercure Hub's cache mechanism allows authenticated attackers to access private topic data or cause denial of service via cache key collisions.
The Mercure Hub's TopicSelectorStore is vulnerable to a cache key collision due to improper delimiter handling. This vulnerability enables an attacker to bypass authorization checks, leading to unauthorized access to private topic data or targeted denial-of-service conditions.
The Mercure Hub implements a real-time messaging protocol utilizing server-sent events. The hub manages a TopicSelectorStore component responsible for matching subscriber topic selectors against published resource URIs. This component employs an internal cache to optimize matching operations and reduce computational overhead during high-volume message broadcasting.
A vulnerability in this caching implementation, classified as CWE-1289 (Improper Validation of Unsafe Equivalence in Input), allows for delimiter injection. The system relies on string concatenation to build cache keys, failing to establish strict boundaries between concatenated variables. This structural flaw produces cache key collisions when inputs contain the designated delimiter character.
An attacker exploiting this vulnerability can force the system to cache a specific match evaluation state under an overlapping key. This manipulation grants unauthorized parties access to private topic updates if they successfully collide their public topic request with a private topic identifier. Conversely, attackers can induce a targeted denial-of-service state by caching a negative match evaluation for legitimate subscribers.
The vulnerability possesses a CVSS 4.0 base score of 7.1, reflecting its high severity. The rating emphasizes the high confidentiality impact and low availability impact executable over a network vector without user interaction. Exploitation mandates only low privileges, specifically the baseline capability to interact with the hub's subscription endpoints.
The underlying flaw resides within the caching logic of topicselector.go. The system builds a string key to store boolean results of topic matching operations. The key construction utilizes a string builder appending the static prefix m_, the selector string, an underscore delimiter, and the topic string.
The specific vulnerability arises from the lack of boundary preservation during this serialization. The underscore character serves as a static delimiter but is also permitted within the dynamic selector and topic fields. The encoding function mathematically fails the property of injectivity, mapping multiple distinct input pairs to identical output strings.
When a specific combination is queried, the cache returns the stored result of the previous overlapping permutation. The engine evaluates selector="a" and topic="b_c" but returns the cached boolean match result originally calculated for selector="a_b" and topic="c". The cache completely ignores the actual structural difference of the two distinct evaluations.
The vulnerable Go implementation prior to version 0.22.0 relied on a strings.Builder to construct the cache key dynamically. The match function combined the variables sequentially with hardcoded bytes.
// VULNERABLE CODE (Pre-v0.22.0)
var b strings.Builder
b.Grow(3 + len(topicSelector) + len(topic))
b.WriteString("m_")
b.WriteString(topicSelector)
b.WriteByte('_') // Static delimiter injection point
b.WriteString(topic)
k = b.String()The patched code in commit 4964a69be904fd61e35b5f1e691271663b6fdd64 completely eliminates the string serialization approach. The developer introduced a strongly typed Go composite struct named matchCacheKey.
// MITIGATED CODE (v0.22.0)
type matchCacheKey struct {
topicSelector string
topic string
}
// ... inside match function ...
k := matchCacheKey{topicSelector: topicSelector, topic: topic}
if value, found := tss.matchCache.GetIfPresent(k); found {
return value
}This structural change permanently resolves the vulnerability class. The Go runtime evaluates composite map and cache keys by comparing individual fields sequentially, maintaining strict boundaries in memory. This native language feature prevents string values from bleeding into adjacent fields, fully neutralizing the CWE-1289 vulnerability.
The attack methodology requires the threat actor to establish an authenticated session with the Mercure Hub. The attacker must possess the privileges to subscribe or publish to specific target topics within the instance. Anonymous, unauthenticated exploitation is structurally impossible unless the hub is explicitly configured for open access.
The attacker evaluates the target environment to identify a private topic structure. The objective is to determine a corresponding public or accessible topic combination that produces an identical concatenated string. The attacker must mathematically align the underscore placements across the topicSelector and topic inputs.
The cache poisoning sequence is initiated by requesting the crafted public permutation. This action forces the Mercure Hub to evaluate the match and store the resulting state under the compromised key identifier. The attacker deliberately triggers this evaluation to embed a known state into the cache memory space.
Subsequent requests executing against the private topic permutation trigger the collision. If an authorized client requests the private stream, they receive the cached negative match, resulting in a targeted denial of service. Conversely, if the attacker engineered a positive match cache entry, they bypass standard authorization barriers to read restricted data streams.
The primary consequence of successful exploitation is a breakdown of authorization boundaries for real-time messaging streams. Attackers achieve read access to restricted data streams intended exclusively for privileged internal components or specific users. This represents a high confidentiality impact under the CVSS scoring system.
The vulnerability facilitates a secondary denial-of-service capability against the messaging subsystem. By deliberately seeding negative match results under collided keys, attackers can actively block authorized subscribers from receiving critical system updates. This availability impact is evaluated as low due to its targeted nature and localized effect.
Exploitation is contingent upon specific structural requirements within the deployment. The attacker must possess prior knowledge of target private topic structures to synthesize the overlapping input permutations. Additionally, the attacker must hold a valid connection token to interact with the hub's subscription mechanisms.
The CVSS 4.0 vector formulation calculates a base score of 7.1. The variables contributing to this score are the network attack vector (AV:N), the absence of complex attack prerequisites (AC:L), and the lack of required user interaction (UI:N). The confidentiality impact (VC:H) drives the ultimate severity classification.
The primary mitigation path requires administrators to upgrade the Mercure deployment to version 0.22.0 or subsequent releases. This version structurally addresses the delimiter injection vulnerability by modifying internal cache key data types. The adoption of Go composite structs prevents the underlying input parsing failure.
Workaround feasibility is extremely low for deployments unable to patch immediately. Implementing a Web Application Firewall (WAF) or reverse proxy rule to globally block underscores in topic names is generally impractical. Underscores function as standard characters in many RESTful resource identifiers and dropping them disrupts legitimate traffic flows.
The applied patch provides a complete and permanent fix for this specific code pathway. The structural change to native interface caching neutralizes the entire CWE-1289 vulnerability class within the TopicSelectorStore. Variant string injection attacks against this subsystem are mathematically impossible under the new architecture.
Organizations should complement the technical patch with defense-in-depth reviews. Security teams must review internal topic nomenclature to ensure strict access token boundaries. External clients must only receive tokens scoped strictly to their required access domains, minimizing the attack surface for potential authenticated manipulation.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N| Product | Affected Versions | Fixed Version |
|---|---|---|
Mercure Hub github.com/dunglas | < 0.22.0 | v0.22.0 |
| Attribute | Detail |
|---|---|
| Vulnerability Type | Improper Validation of Unsafe Equivalence in Input (CWE-1289) |
| Attack Vector | Network (Authenticated) |
| CVSS 4.0 Score | 7.1 (High) |
| Confidentiality Impact | High |
| Exploit Maturity | Proof of Concept (PoC) |
| Fixed Version | v0.22.0 |
The software uses a mechanism to determine if two inputs are equivalent, but the mechanism can be manipulated to improperly identify non-equivalent inputs as equivalent.
CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.
CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.
CVE-2026-77423 is a Regular Expression Denial of Service (ReDoS) vulnerability in the built-in less viewer of the JLine Java library (versions 3.0.0 prior to 3.30.15, and 4.0.0 prior to 4.3.1). The org.jline.builtins.Less class passes user-supplied search and display-filter patterns directly to Java's standard backtracking regular expression engine without complexity validation or execution timeouts. An attacker with access to an interactive JLine session can submit patterns containing nested quantifiers, causing catastrophic backtracking that consumes 100% of a CPU core and blocks the session thread indefinitely. In network-facing deployments such as SSH or Telnet administration consoles, repeated exploitation across concurrent sessions can exhaust bounded worker thread pools and result in a complete denial of service.
CVE-2026-63492 is a rejected CVE identifier originally assigned by GitHub for an OS command injection vulnerability in WWBN AVideo (formerly YouPHPTube) up to version 29.0. It was rejected as a duplicate of the canonical identifier CVE-2026-63304 (tracked under GHSA-j44m-77cc-p3cc). The flaw resides in the listFFmpegProcesses() function within plugin/API/standAlone/functions.php, which interpolates unsanitized user parameters directly into a single-quoted shell pipeline executed via PHP's exec() function. Attackers capable of crafting a valid AES-256-CBC encrypted API payload can break out of the single-quoted context and execute arbitrary operating system commands as the web-server user.
CVE-2026-63476 is an uncontrolled resource consumption vulnerability in isomorphic-git prior to version 1.38.6. When parsing Git packfile delta objects during clone or fetch operations, the applyDelta utility reads an untrusted targetSize integer from the delta stream header and passes it directly to Buffer.alloc(). A malicious remote Git server or man-in-the-middle attacker can supply a delta header specifying a targetSize of approximately 2 GB with minimal actual payload data. Because Buffer.alloc() reserves off-heap memory in Node.js, this bypasses standard V8 heap limits and results in immediate out-of-memory termination or sustained memory retention.
CVE-2026-63410 (GHSA-vp2j-gqfm-r3cf) is a compiler-induced timing side-channel vulnerability in the secp256k1-native Ruby C extension. When compiled with GCC 14.x or 15.x at optimization level -O2, the compiler reconstructs boolean predicates from branchless bitwise multiplexer routines and emits secret-dependent conditional jump instructions (je/jne). During elliptic curve scalar multiplication in the Montgomery ladder, these conditional branches create observable execution timing variations correlated with individual bits of secret private keys or signing nonces.