Both are prone to hacking. You can never really trust be sure of an exchange's security wether it's centralized or decentralized.
There's just not much volume in decentralized exchanges that only small traders use it. It's also not easy to use for average users.