Dreams of something haunted represent your shadow and fear based negative thoughts that are eating at you and feeding off your fear.
If you’ve done something in the past of which you regret or feel ashamed, these memories can haunt you until you are able to make amends. See Ghost, Venting Dreams and Shadow.... Strangest Dream Explanations
(Possessed) If one sees himself haunted or possessed by evil spirits in a dream, it means that he engages in usury, performs secrets arts, or that he may lose his wealth to become unhappy, or to suffer from stress or depression.... Islamic Dream Interpretation
Dreaming of a haunted house represents an unsettled past. You may have unresolved problems with past friends or family which are causing you feelings of guilt or anxiety. Dreaming that you are lost or trapped inside a haunted house means that these feelings have limited your abilities in other aspects of your life.... Dream Symbols and Analysis