Hydrazone-based covalent organic frameworks (COFs) are rich in functional groups but have very limited variety and applications. Herein, two hydroxy-rich hydrazone-based COFs are synthesized in pure water and postsynthetically incorporated with CoII, exhibiting Lewis acid catalytic activity towards cyanosilylation of various aldehydes with size selectivity.