Mattermost 5.0.3 is a security update for an S2 issue that has also been fixed in 4.10.3 and 5.1.1.
@marin @jasonblais