$\because$ On dissolving NaCN in de-ionised water, following reaction takes place.
$CN ^{-}+ H _{2} O \rightleftharpoons HCN + OH ^{-}$
$\because CN ^{-}$ions come from the salt of strong base and weak acid.
$\therefore $ The solution becomes basic and $pH >7$.