Legacy beyond parents is very weak, and undergrad > grad. Vanderbilt does give legacies weight, but in 2010 there were 2400 legacies (out of 30K apps) for a class of 1600 students. JHU says they give a legacy app ‘an extra read’.
It won’t hurt, but don’t count on it doing more than giving you that ‘extra read’.