Acute stress can inhibit the activity of dopaminergic neurons in the ventral tegmental area (VTA), leading to increased anxiety and reduced sensitivity to natural rewards. However, the molecular mechanisms underlying this effect remain unclear. Our study shows that acute restraint stress increases the phosphorylation of the transcription factor STAT3 at Ser727 and Tyr705 in VTA dopaminergic neurons, enhancing its transcriptional activity. This modulation contributes to the inhibition of dopaminergic neuron activity, heightened anxiety, and reduced reward sensitivity. Furthermore, acute stress also promotes O-GlcNAcylation in VTA neurons, which competes with STAT3 Ser727 but not Tyr705 phosphorylation and modulates its transcriptional activity, leading to alterations in GABA receptor expression. This reveals a complex molecular feedback mechanism where O-GlcNAcylation regulates STAT3 activity to maintain brain homeostasis during acute stress responses.