Childhood maltreatment has been demonstrated to impact brain development. However, whether childhood maltreatment can influence the effects of recent stress on brain networks remains unclear. This study aimed to investigate whether childhood maltreatment moderates the longitudinal relationship between recent life stress and within- and between-network connectivity in key brain networks, including the anterior salience (ASN), central executive (CEN), default mode (DMN), and emotional regulation network (ERN). A cohort of 172 individuals from the Neuroscience in Psychiatry Network (NSPN) underwent MRI scans at two specific time points and undertook evaluations of childhood maltreatment and recent life stress. The results showed that childhood abuse moderated the association of recent life stress with the within-network connectivity of ASN and ERN but not DMN and CEN. Furthermore, recent life stress significantly interacted with childhood abuse to be associated with the between-network connectivity of ASN-DMN, ASN-CEN, ASN-ERN, DMN-ERN and CEN-ERN. Overall, among youth exposed to higher degrees of childhood abuse, greater recent life stress was longitudinally associated with increased network connectivity. Understanding these interactions can provide valuable insights for developing prevention strategies and interventions aimed at mitigating the lasting impact of childhood maltreatment on brain development and overall well-being.