And if your state has addressed it as a problem. As a general rule, unless there is a law to the contrary,you can do with your head gear as you see fit. Now, the maker of the head gear can say it will not guarantee what happens to you if you do attach anything to the helmet, but that is up to contract law and that is again state dependent.
In simple terms, the only people who MAY know AND give you an opinion would be your state department of transportation, contact them for information on adding a light to your helmet.
Now many States regulate lights on MOTORCYCLES Helmets on the grounds they do NOT want such cyclist to blind oncoming cars by looking in the direction of the on coming cars. Headlights on cars and Motorcycles are regulated as to which direction their shine light so to minimize light that may blind an on coming vehicle. Since you can NOT regulate where someone may turn his head, lights are just NOT permitted on motorcycle helmets. These bans often come under Spot Lights in Cars laws.
How these laws affect bicyclists is anyone guess, but the purpose of these laws is to prevent anyone from blinding a driver and causing an accident. Thus any light from a bicycle, including but NOT limited to a helmet mounted light, would also be banned under those same laws. Most bicycle lights are NOT that bright but in the right combination capable of blinding a driver and thus may be banned under a general law banning lights on vehicles (which includes bicycles) unless approved AND banning lights on helmets or above a certain height on a vehicle. Check your state department of transportation to see if your state has adopted any rule and if they say no, be careful anyway, for they may be in error as to their own state law.