Throughout the Democratic presidential contest, Hillary Clinton’s campaign has steered clear of any attacks on perhaps the most controversial piece of rival Sen. Bernie Sanders’s biography: his democratic socialist identity.

That may be about to change.

With the race tightening, the Sanders and Clinton camps are stepping up attacks on one...