Perfluorooctane sulfonamide (PFOSA) is an immediate perfluorooctanesulfonate (PFOS) precursor (PreFOS). Previous studies have shown PFOSA to induce stronger toxic responses compared to other perfluorinated compounds (PFCs). However, the specific nature of PFOSA-induced toxicity, whether autonomous or mediated by its metabolite PFOS, has not been fully elucidated. This study systematically investigates the immunomodulatory effects of PFOSA and PFOS in zebrafish (Danio rerio). Exposure to PFOSA compromised the zebrafish's ability to defend against pathogenic infections, as evidenced by increased bacterial adhesion to their skin and reduced levels of the biocidal protein lysozyme (LYSO). Moreover, PFOSA exposure was associated with disruptions in inflammatory markers and immune indicators, along with a decrease in immune cell counts. The findings from this study suggest that the immunotoxicity effects of PFOSA are primarily due to its own toxicity rather than its metabolite PFOS. This conclusion was supported by dose-dependent responses, the severity of observed effects, and multivariate analysis. In addition, our experiments using NF-κB-morpholino knock-down techniques further confirmed the role of the Nuclear factor-κappa B pathway in mediating PFOSA-induced immunotoxicity. In conclusion, this study reveals that PFOSA impairs the immune system in zebrafish through an autotoxic mechanism, providing valuable insights for assessing the ecological risks of PFOSA.