A vaccine that could prevent users from getting high on opioids is in the trial stages, researchers report.