Copper-mediated C-H cyanation of (hetero)arenes with ethyl (ethoxymethylene)cyanoacetate as a cyanating agent.