This study aims to investigate auditory hypersensitivity and cortical function in migraine patients using the Hyperacusis Questionnaire and the Event-Related Potential (ERP) technique. The study analyzes alterations in the latency and amplitude of the event-related potentials MMN and P300 components. The findings contribute to a better understanding of the physiological relationship between migraine and auditory hypersensitivity. Seventeen migraine patients were admitted to the outpatient clinic of the Department of Otorhinolaryngology-Head and Neck Surgery at Peking University People’s Hospital from June 2023 to September 2023. Nineteen matched healthy subjects were also selected. All participants underwent the pure tone audiometry and the auditory brainstem response test to determine hearing thresholds, the Hyperacusis Questionnaire, the Tinnitus Handicap Inventory, and an ERP examination. The Oddball classical paradigm was used as the stimulation task, and electroencephalography signals were recorded synchronously. The scores of the Hyperacusis Questionnaire, latency and amplitude of MMN and P300 component were compared between the migraine group and the control group, and their correlation was analyzed. The latency of MMN at the Fz and Cz sites in migraine patients was significantly shorter than that in the control group (P < 0.05), and the amplitudes were significantly higher than those in the control group (P < 0.05). The variances in latency and amplitude of P300 at Cz and Pz sites in migraine patients were not statistically significant when compared with the control group. (P > 0.05). The Hyperacusis Questionnaire was negatively correlated with MMN latency, with a correlation coefficient of − 0.374 (P = 0.025), and positively correlated with MMN amplitude, with a correlation coefficient of 0.378 (P = 0.023). There was no significant similarity between the Hyperacusis Questionnaire and P300 latency and amplitude (P > 0.05). Overall, auditory hypersensitivity was enhanced in individuals with migraines compared to healthy individuals, leading to faster information processing, while there may be less impairment in cognitive function.