PurposeToday's business world has been tarnished with numerous corporate irresponsible behaviors. It is thus of great importance for firms to carry out crisis management on the condition of corporate social irresponsibility (CSI). Taking a contingent social media crisis management perspective, the authors aim to investigate the relation between CSI and firm value while also examining the moderating effects of being known in social media and generalized favorability in social media on this relation.Design/methodology/approachThe empirical analysis conducted in the authors' research is based on a sample of 203 CSI events that occurred within publicly listed firms in China between 2011 and 2015. During the process of the authors' data collection, the authors initially verified the occurrence of CSI events in publicly listed firms by reviewing reports from reputable sources such as the 21st Century Business Herald and China Securities Journal. Subsequently, the authors collected the information pertaining to media coverage of these CSI events from the China Core Newspapers Full-text Database (CCND). Additionally, the authors obtained the remaining data from reliable sources such as Guba, the China Stock Market and Accounting Research Database (CSMAR) and the Chinese News Analytics Database (CNAD). To test the authors' hypotheses, the event study and multiple-regression analysis methods are adopted.FindingsThe authors find CSI generates a negative impact on firm value. Moreover, while being known in social media strengthens the negative relation between CSI and firm value, generalized favorability in social media weakens such relation.Research limitations/implicationsThere are two streams of limitations that present promising avenues for future studies. Theoretically, the authors explore the mechanisms of CSI affecting firm value from a contingent social media crisis management perspective. Consequently, the authors' study does not encompass other potential mechanisms that may exist in the CSI–firm value linkage. In terms of empirical analysis, three issues arise that provide opportunities for further investigation. First, the authors have not accounted for all potential factors that could influence the link between CSI and firm value. Second, the authors' data are subject to limitation since it comes from manual collection. At last, because the authors confirm the sample based on the actual CSI events of publicly listed firms in China, the authors' sample size is small.Originality/valueThe authors' findings contribute to a more comprehensive understanding of the relation between CSI and firm value, as well as effective strategies for responding to CSI through the utilization of social media. Consequently, the authors' results have the potential to stimulate further research on the implications of CSI and the management of corporate crises through social media platforms.