There are switches on the brake levers, if you move one of the brake levers back and forth slightly, you should be able to hear a click. That is the brake light switch. My first guess would be that one of those switches is stuck. It could be as simple as backing off an adjustment, or maybe the switch just needs to be replaced.
Yours truly, sincerelly, love always, Josh aka The DirtDemon.