Nobody has ever confirmed it. One popular theory is that Yoshi's gender varies by colour, which would neatly sidestep the question — but it remains fan speculation rather than canon.