If it's in your checked baggage this is not a security concern, but rather a customs matter in the unlikely event that customs on arrival look through your baggage.
Unless it's a restricted or prohibited import, there is no reason why there should be a problem. If it's something you can buy over the counter then in Hungary it's not likely to cause the slightest problem.