RIO DE JANEIRO, Brazil — Brazilian soccer star Romario attributed his failed drug test to a substance found in anti-balding medication.

The 41-year-old striker for Vasco da Gama said Tuesday he tested positive for the banned substance finasteride in October. He said he had been using the drug, whose active ingredient is Propecia, to prevent hair loss. The drug is banned by the World Anti-Doping Code because it can mask the use of anabolic steroids.

He said he would not let the positive result end his career and he would await a hearing before Brazil's sport tribunal.

Romario called a news conference to announce the result of the test conducted following the 2-2 tie between Vasco and Palmeiras on Oct. 28.