Browser developers try to keep their extension stores free of malicious extensions, but it's still possible for unsafe extensions to slip through and be published on the extension store. Browser developers will often specifically vouch for some popular extensions, adding a "Featured" or "Recommended" badge on the extension store listing; those extensions are usually trustworthy. But again, you assume some risk anytime you install an extension.