It may not be explicitly forbidden, but the Lord's stance on lust is much, much clearer. Lust and masturbation go hand in hand, and it's immensely difficult to completely separate the two. It's better for your own sake to show complete obedience and caution rather than trying to justify sin.