Maternal obesity during perinatal period increases the risk of metabolic and behavioral deleterious outcomes in the offspring, since it is critical for brain development, maturation, and reorganization. These processes are highly modulated by the endocannabinoid system (ECS), which comprises the main lipid ligands anandamide and 2-arachidonoylglycerol, cannabinoid receptors 1 and 2 (CB1R and CB2R), and several metabolizing enzymes. The ECS is overactivated in obesity and it contributes to the physiological activity of the hypothalamus-pituitary-adrenal (HPA) axis, promoting stress relief. We have previously demonstrated that maternal high-fat diet during gestation and lactation programmed the food preference for fat in adolescent male offspring and adult male and female offspring. In the present study, we hypothesized that maternal diet-induced obesity would induce sex-specific changes of the ECS in the hypothalamus and dorsal hippocampus of rat offspring associated with dysregulation of the HPA axis and stress-related behavior in adolescence. Rat dams were fed a control (C) or an obesogenic high-fat high-sugar diet (OD) for nine weeks prior to mating and throughout gestation and lactation. Maternal obesity differentially altered the CB1R in the hypothalamus of neonate offspring, with significant increase in male but not in female pups, associated with decreased CB2R prior to obesity development. In adolescence, maternal obesity induced anxiety-like behavior only in adolescent females which was associated with increased content of CB1R in the dorsal hippocampus. Our findings suggest that the early origins of anxiety disorders induced by maternal exposome is associated with dysregulation of the brain ECS, with females being more susceptible.