Why airport and cafe chargers deserve some caution
It can be hard to know who actually maintains a public USB port, and a small tampering device hidden inside a cable or port isn't something you can spot by looking. Confirmed large-scale incidents of this kind of attack aren't especially common, but the fact that the structural possibility of a data connection exists at all is reason enough for a bit of caution.
A portable power bank is also a good option
The simplest precaution is carrying a charged portable power bank or battery pack. That way you never need to plug your device directly into a public port, sidestepping the data-connection risk entirely.
Frequently Asked Questions
I already used a public charger, should I be worried?
In the vast majority of cases, nothing happens beyond ordinary charging. But if you noticed an unusual pop-up during charging or your device has been behaving strangely since, running a security scan is a reasonable precaution.
Does wireless charging carry the same risk?
No. Wireless charging transfers power through electromagnetic induction with no data pins involved, so it's largely unaffected by the cable-based data-theft risk that juice jacking relies on.