Cytoplasmic mRNA degradation controls gene expression to help eliminate pathogens during infection. However, it has remained unclear whether such regulation also extends to nuclear RNA decay. Here, we show that 145 unstable nuclear RNAs, including enhancer RNAs (eRNAs) and long noncoding RNAs (lncRNAs) such as NEAT1v2, are stabilized upon Salmonella infection in HeLa cells. In uninfected cells, the RNA exosome, aided by the Nuclear EXosome Targeting (NEXT) complex, degrades these labile transcripts. Upon infection, the levels of the exosome/NEXT components, RRP6 and MTR4, dramatically decrease, resulting in transcript stabilization. Depletion of lncRNAs, NEAT1v2, or eRNA07573 in HeLa cells triggers increased susceptibility to Salmonella infection concomitant with the deregulated expression of a distinct class of immunity-related genes, indicating that the accumulation of unstable nuclear RNAs contributes to antibacterial defense. Our results highlight a fundamental role for regulated degradation of nuclear RNA in the response to pathogenic infection.