Reaction of potassium cyanide with 2-(chloromethyl)furan
Although the answer was already appropriately provided, for anyone interested in further reading, the reaction is covered in detail by Divald and coworkers:1



Essentially, the proposed mechanism starts from the resonance structures of 2-chloromethyl furan, where the chlorine bond is treated as ionic and the electron-donating property of oxygen stabilizes the shared positive charge similar to a benzyl cation. The 5' position is therefore electrophilic (and is presumably further activated by the inductive effects of a neighboring oxygen), resulting in a 60/40 yield of 5/2-methyl substitution.

It is however mentioned early in the paper that 5' substitution is only seen in protic solvents. This could be explained in the proposed mechanism, where after addition to the 5' position, elimination of the geminal hydrogen and tautomerization proceed through exchange with a protic solvent.



Reference


Divald, S.; Chun, M. C.; Joullié, M. M. Chemistry of 2-(chloromethyl)furans. Reaction of 2-(chloromethyl)furans with aqueous potassium cyanide and other nucleophiles. J. Org. Chem. 1976, 41 (17), 2835–2846. DOI: 10.1021/jo00879a010.