In Islam, products derived from pigs are generally prohibited. However, when it comes to medicine, the situation may be evaluated based on necessity. If a vaccine containing porcine-derived ingredients is essential to prevent serious health issues and no viable alternative is available, it may be permissible under the principle of “zaruret” (necessity).
The decision should involve consulting healthcare professionals to assess the vaccine’s necessity, potential harms of not receiving it, and the availability of alternatives. If deemed a necessity, its use is permitted.