Is it possible to contract an STD from masturbating?

No. Stds are caught by direct contact of genitalia, mouth or rectum with genitalia, mouth or rectum of an infected person. Thus unly what to get std from masturbation is if masturbators genitalia are in contact with or inside an orifice of someone infected with std.