Myelography. This test is considered the gold standard for diagnosing and locating CSF leaks. It uses digital subtraction fluoroscopy, a CT or MRI scan, and a contrast dye to locate CSF leaks. It provides the most precise location of a CSF leak and helps to determine the most appropriate treatment plan.