Actually cats are not afraid of cucumbers, but they get scared noticing an unexpected object close to them. That's why the veterinarians have strongly advised to stop terrorizing cats by placing cucumbers behind their backs just for fun — the animals suffer from real stress.
Naturally cats have no fear of cucumbers and even eat them.