Our study revealed that six druggable genes were associated with hemorrhagic stroke, and the inhibition of TNFSF12, SLC22A4, and SPARC had preventive effects against hemorrhagic strokes. Here, TNFSF12 is linked to hemorrhagic stroke.