idiom
a double-edged sword
Meaning
something that has both positive and negative consequences
Example
The internet is **a double-edged sword**; it provides vast information but also exposes us to privacy risks.