Background: During cardiac arrest, cardiopulmonary resuscitation (CPR) is a crucial life-saving procedure. Since they are frequently the first responders in critical care units, nurses' knowledge and dispositions have a direct impact on patient survival rates. Despite the availability of standardized training, data show that nurses' CPR skills are seriously lacking. Assessing nurses' attitudes and knowledge about CPR and determining the relationship between these variables and their length of service in critical care settings were the goals of this study. Methods: In Klang, Malaysia, at Hospital Tengku Ampuan Rahimah (HTAR), a quantitative cross-sectional design was used. Convenience sampling was used to select 152 nurses from the intensive care unit (ICU) and the coronary care unit (CCU). A validated self-administered questionnaire comprising three sections demographic data, 14 true/false knowledge items, and 13 Likert-scale attitude items was used to collect the data. We examined the data using IBM SPSS v27 and applied descriptive and inferential statistics, including Spearman's rank correlation tests, Chi-square, and Shapiro-Wilk normality. Results: The average attitude score (3.74 ± 0.33) indicated that people had a generally positive attitude, while the average knowledge score (0.59 ± 0.11) indicated that people understood CPR well. There were significant knowledge gaps regarding the rate of compressions (27.6%) and the depth of chest compressions (0%) as well. Knowledge was significantly predicted by ward assignment (p = 0.002) and length of service (p < 0.001). Experience had a substantial impact on attitude (p < 0.001), with more experienced nurses expressing greater confidence and preparedness, but continued hesitancy regarding mouth-to-mouth resuscitation. Conclusions: The HTAR nurses demonstrated a modest level of CPR knowledge and generally favourable attitudes, despite significant deficiencies in numerous critical procedural areas. Ongoing refresher training, simulation-based learning, and supportive ward environments are essential to preserving competency and improving resuscitation outcomes in critical care units.