Urban metro passenger flow exhibits complex spatiotemporal dependencies and pronounced nonstationarity, driven by fine-grained interstation interactions, long-range cross-line couplings, multiscale periodicity, and holiday-induced perturbations. Existing methods often rely on predefined topological structures or static propagation mechanisms, making it difficult to capture spatial correlations that vary across time and operating conditions. To address this limitation, this article proposes a dynamic spatiotemporal hybrid attention (DST-HA) model for metro passenger flow prediction. Along the spatial dimension, DST-HA develops a topology-agnostic interaction-context dual-branch hybrid attention module in which a node-level gating mechanism adaptively reconstructs internode attention weights from the current passenger flow state and fuses node-level interactions with network-level context. This design enables the learning of time-varying spatial dependencies without requiring any prior adjacency matrix. Along the temporal dimension, DST-HA introduces a context-aware spatiotemporal recurrent unit (CA-STRUs) that injects time-of-day and weekday/holiday information into gating and attention computations through linear transformations, thereby enabling adaptive memory updates under varying temporal patterns. Comprehensive experiments on real-world metro passenger flow datasets from Hangzhou and Shanghai show that DST-HA consistently outperforms strong representative baselines across multiple operating scenarios, especially under high-pressure conditions, demonstrating its practical value for congestion warning, capacity adjustment, and real-time metro operations.