The development of tissue adhesives with good biocompatibility and potent antimicrobial properties is crucial for addressing the high incidence of surgical site infections in emergency and clinical settings. Herein, an injectable hydrogel adhesive composed of chitosan biguanidine (CSG), oxidized dextran (ODex) and tannin (TA) was synthesized primarily through Schiff-base reactions, hydrogen bonding, and electrostatic interactions. TA was introduced into the CSG/ODex hydrogel to prepare a physicochemically double cross-linked hydrogel. The hydrogel formulation incorporating 2 wt% TA (CSG/ODex-TA2) exhibited rapid gelation, moderate mechanical properties, good tissue adhesion, and sustained release behavior of TA. Both in vitro and in vivo studies demonstrated that CSG/ODex-TA2 showed significantly enhanced adhesion and antibacterial effectiveness compared to the CSG/ODex hydrogel and commercial fibrin glue. Leveraging the positive charge of CSG, the CSG/ODex-TA2 hydrogel demonstrated a strong contact antibacterial effect, while the sustained release of TA provided diffusion antibacterial capabilities. By integrating contact and diffusion antibacterial mechanisms into the hydrogel, a promising approach was developed to boost antibacterial efficiency and accelerate the healing of wounds infected with methicillin-resistant Staphylococcus aureus (MRSA). The CSG/ODex-TA2 hydrogel has excellent biocompatibility, hemostatic properties, and antibacterial capabilities, making it a promising candidate for improving in vivo wound care and combating bacterial infections.