Development of high-performance sorbents is extremely significant for CO capture due to its increasing atmospheric concentration and impact on environmental degradation. In this work, we develop a new model of CN pores based on GCMC calculations to describe its CO adsorption capacity and selectivity. Remarkably, it exhibits an outstanding CO adsorption capacity and selectivity. For example, at 0.15 bar it shows exceptionally high CO uptakes of 3.99 and 2.07 mmol/g with good CO/CO, CO/H, and CO/CH selectivity at 300 and 350 K, separately. More importantly, this adsorbent also shows better water stability. Specifically, its CO uptakes are 3.80 and 5.91 mmol/g for and 0.15 and 1 bar at 300 K with a higher water content. Furthermore, DFT calculations demonstrate that the strong interactions between CN pores and CO molecules contribute to its impressive CO uptake and selectivity, indicating that CN pores can be an extremely promising candidate for CO capture.