Most electrical products pose a fire hazard. While plug-in air fresheners are generally safe to use, even some manufacturers, like Air Wick, state on their website that there is a fire hazard with their products.
Always read the manufacturer’s instructions when starting with a plug-in air freshener. Also, make sure not to plug in anything above an air freshener.