Dreaming of swords or other sharp objects that cut, usually means you are warned of threats.
Who is wielding the sword? If you are, it can imply you are prepared to fight or defend yourself. If someone else is holding the sword, it means that person is a threat to you.