Since WD apparently won’t update Samba the only way to safely do so (at least on the first gen) is for one to use the GPL version and attempt to roll their own firmware with the latest Samba (and other updates).
Not sure if there is a guide for doing so on the 2nd gen firmware but apparently there is a guide of sorts for the first gen firmware at this link.