3.26.1 html 1 23 1 false 0 0 false 0 false false R1.htm 0000001 - Document - Cover Sheet http://www.x4pharma.com/role/Cover Cover Cover 1 false false All Reports Book All Reports xfor-20260511.htm xfor-20260511.xsd xfor-20260511_lab.xml xfor-20260511_pre.xml http://xbrl.sec.gov/dei/2024 true false