CVE-2026-42865: Insecure Redis Pmessage Broadcast

A Redis `pmessage` event listener processes messages without verifying the matched pattern. When using a shared Redis client for publish/subscribe, failing to check the pattern against the locally expected value can result in severe cross-tenant information leaks, where one user receives pub/sub messages intended for another. Ensure the pattern parameter is

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0TS
greprules fetch cve-2026-42865-insecure-redis-pmessage-broadcast --engine opengrep

Description

A Redis `pmessage` event listener processes messages without verifying the matched pattern. When using a shared Redis client for publish/subscribe, failing to check the pattern against the locally expected value can result in severe cross-tenant information leaks, where one user receives pub/sub messages intended for another. Ensure the pattern parameter is