Environmental justice (EJ) has become an increasingly significant issue for environmental management and has thus attracted increasing government and public attention. Although some studies have used techniques of proximity based on geographical information systems to assess EJ, their research is limited to individual or household data. Unlike the conventional hedonic price model (HPM) examining the effects of environmental features on housing rent, this article incorporates counterfactual decomposition into the HPM to estimate the environmental pressure on different groups by comparing the externality effects of municipal solid waste treatment facilities (MSWTFs) on two separate groups of people. To explore whether and, if so, the extent to which, vulnerable groups of people are restricted to disproportionate impacts of hazardous environmental facilities, this research uses Shanghai as the study area to highlight specific locations and exemplify the environmental injustice between the rich and the poor. The results, which represent the relationship between environmental quality and property prices, indicate that environmental quality is a robust predictor of housing rent. Simultaneously, the results suggest that some people conform better to environmental pressure than do others. Thus, the environmental impact of MSWTFs on different populations should be considered, and compensation policies should be implemented for disadvantaged groups.