A study of people who inject drugs found a significant increase in the risk of infective endocarditis, a serious infection of the lining of the heart, possibly linked to increasing use of the opioid hydromorphone.