Almost never "explodes"/"leaks" -- at least in comparison to heavier liquids and gels like hair conditioner or hand moisturizing lotions which are not dispensed by an aerosol can and are far more likely to "explode"/"leak".
An aerosol can can trigger a search sometimes -- at the passenger security checkpoint or the baggage security screening location(s) -- but usually it doesn't seem to do that.