Adaptive immunity critically contributes to control acute infection with enteropathogenic Yersinia pseudotuberculosis; however, the role of CD4+ T cell subsets in establishing infection and allowing pathogen persistence remains elusive. Here, we assessed the modulatory capacity of Y. pseudotuberculosis on CD4+ T cell differentiation. Using in vivo assays, we report that infection with Y. pseudotuberculosis resulted in enhanced priming of IL-17-producing T cells (Th17 cells), whereas induction of Foxp3+ regulatory T cells (Tregs) was severely disrupted in gut-draining mesenteric lymph nodes (mLNs), in line with altered frequencies of tolerogenic and proinflammatory dendritic cell (DC) subsets within mLNs. Additionally, by using a DC-free in vitro system, we could demonstrate that Y. pseudotuberculosis can directly modulate T cell receptor (TCR) downstream signaling within naïve CD4+ T cells and Tregs via injection of effector molecules through the type III secretion system, thereby affecting their functional properties. Importantly, modulation of naïve CD4+ T cells by Y. pseudotuberculosis resulted in an enhanced Th17 differentiation and decreased induction of Foxp3+ Tregs in vitro. These findings shed light to the adjustment of the Th17-Treg axis in response to acute Y. pseudotuberculosis infection and highlight the direct modulation of CD4+ T cell subsets by altering their TCR downstream signaling.Electronic supplementary materialThe online version of this article (doi:10.1007/s00018-017-2516-y) contains supplementary material, which is available to authorized users.