I was reading this answer to understand the inner workings of bash when I saw this:
You should never have
.in your PATH as it poses a security risk, among other problems.
and couldn't figure out why this is a security risk and the answer didn't elaborate.