Bernie Sanders has reason to wish he’d never visited Alan Gross six years ago when Mr. Gross was a political prisoner in Cuba.

Mr. Sanders recently praised Fidel Castro’s literacy program but insisted that he never sympathized with the Cuban dictatorship. That’s not how Mr. Gross remembers the February day in 2014 when the Vermont senator stopped to see him during his Cuban detention.

The...