Bile duct cancer is the second most common primary liver cancer, with most diagnoses occurring in the advanced stages. This leads to a poor survival rate, which means a technique capable of reliably detecting pre-cancer in the bile duct is urgently required. Unfortunately, radiological imaging lacks adequate accuracy for distinguishing dysplastic and benign biliary ducts, while endoscopic techniques, which can directly assess the bile duct lining, often suffer from insufficient sampling. Here, we report an endoscopic optical light scattering technique for clinical evaluation of the malignant potential of the bile duct. This technique employs an ultraminiature spatial gating fiber optic probe compatible with cholangioscopes and endoscopic retrograde cholangiopancreatography (ERCP) catheters. The probe allowed us to investigate the internal cellular composition of the bile duct epithelium with light scattering spectroscopy (LSS) and phenotypic properties of the underlying connective tissue with diffuse reflectance spectroscopy (DRS). In a pilot in vivo double-blind prospective study involving 29 patients undergoing routine ERCP procedures, the technique detected malignant transformation with 97% accuracy, showing that biliary duct pre-cancer can be reliably identified in vivo non-invasively.