He further wrote that it is customary regarding worms in cheese to eat them even though they jump here and there upon the cheese, but if they separated entirely, they are forbidden. However, if they became mixed with other food and one cannot remove them from there, they do not forbid the food, for there are those who permit them in any case, and it is good to be stringent where there is no loss of a significant amount of money. Thus far his words. The explanation of the matters is as follows: behold, according to what has been explained in this entire siman, there are three levels regarding the prohibition of the separation of worms that form in detached matter. For in water that is in vessels, it is not called "separation" until it separates to the outside of the vessel. And worms that form inside the fruit while detached, it is called "separation" even if it separated onto the surface of the fruit, and certainly if it left the fruit entirely to the inner wall of the vessel. And the worms that formed in other foods, such as mites that are in flours and groats and the like—in these, it is not relevant to call it "separated" when they are upon the flour and the groats, for behold, they did not form inside the fruit, and even when they walk upon the flour and the groats, it is as if they did not separate, and the entire pile is as one thing, as is explained from the words of the Shulchan Aruch, section 5. And we elaborated on this in section 45 and section 46, see there. And we explained there that when they are placed on the ground, it is called "separated" only when they separated onto the ground, and if they are placed in a vessel, it is called "separated" when they separated onto the inner walls of the vessel, as I wrote in section 47, see there. And behold, according to this, regarding worms in meat after shechitah according to most poskim, and regarding worms in figs, and regarding worms in cheese, it appears the law is also thus, for behold, their formation is not specifically in the interior of the food; on the contrary, most of them form upon the surface of the food, as I wrote in section 91. However, when they separated within the vessel, even on the inside, and certainly to another place entirely, it is certainly "separated" and they are forbidden. And this is what our teacher, the Rema, says: that when they jump here and there upon the cheese, we have no concern with it, and when they separated entirely, even within the vessel on the inside, it is called "separated" and they are forbidden. Except that there are those who say that these worms, even if they separated entirely, are permitted, for they hold that worms that form from an abundance of fat or from putrefaction do not have the status of a "creeping thing" at all, for it is not a "creeping thing" except in products of the ground or in matters of drink such as water and other liquids [Taz, subsection 23 in the name of the Rashal, and the Beit Yosef in the name of the Raviah]. And our teacher, the Rema, did not agree with their opinion, except that he relied on this opinion regarding a mixture. And in truth, this opinion is astonishing, for behold, the Rambam wrote explicitly in chapter 2, law 13, and this is his wording: These species that are created in refuse and in the bodies of carcasses, such as maggots and worms, etc., from dung that has putrefied, etc., and one who eats a kezayit of them is lashed, etc. These species that are created in fruits and in foods, if they separated, etc., even if they returned into the food, he is lashed, etc. Thus far his words. And so wrote all the Rishonim. And already one of the great Acharonim [Pri Chadash at the end of this siman] cried out about this like a crane, and Heaven forbid to be lenient in this [and so it is proven in Torat Kohanim, Parshat Shemini].
עוד כתב שנוהגים בתולעים של גבינה לאכלן אע"פ שקופצין הנה והנה על הגבינה אבל אם פירשו לגמרי אוסרין אותן מיהו אם נתערבו בשאר מאכל ולא יכולין להסירן משם אין אוסרין המאכל כי יש מתירין אותן בכל ענין וטוב להחמיר במקום שאין הפ"מ עכ'"ל ביאור הדברים דהנה לפי מה שנתבאר בכל סי' זה יש ג' מדרגות באיסור פרישת התולעים המתהוים בתלוש דבמים שבכלים לא מקרי פרישה עד שתפרוש לאחורי הכלי ותולעים המתהוים תוך הפירי בתלוש מקרי פרישה אף אם פירשה על גבי הפירי וכ'"ש ביצאה מהפירי לגמרי אל דופן הכלי מבפנים והתולעים שנתהוו בשארי מאכלים כמו מילבין שבקמחים וגרויפין וכיוצא בהם באלו לא שייך לקרא פירש כשהם על גבי הקמח והגרויפין שהרי לא נתהוו תוך הפירי ואפילו כשהולכים על הקמח והגרויפין הוה כלא פירשו וכל הצבור הוה כדבר אחד כמבואר מדברי הש"ע סעיף ה' והארכנו בזה בסעיף מ"ה וסעיף מ"ו ע"ש ובארנו שם דכשמונחים על הארץ מקרי פירשו רק כשפירשו על הארץ ואם מונחים בכלי מקרי פירשו כשפירשו על דופני הכלי מבפנים כמ"ש בסעיף מ"ז ע"ש והנה לפ"ז בתולעים שבבשר לאחר שחיטה לרוב הפוסקים ובתולעים שבתים ובתולעים שבגביגה נראה ג"כ הדין כן שהרי התהוותם אינם דווקא בפנימיות המאכל ואדרבא רובם מתהוים על גבי המאכל כמ"ש בסעיף צ"א אמנם בשפירשו בתוך הכלי אפילו מבפנים וכ"ש למקום אחר לגמרי ודאי הוה פירשו ואסורים וזהו שאומר רבינו הרמ"א דבשקופצים הנה והנה על הגבינה לית לן בה וכשפירשו לגמרי אפילו בתוך הכלי מבפנים מקרי פירשו ואסורים אלא שי"א דתולעים אלו אפילו פירשו לגמרי מותרים דס"ל דתולעים המתהוים מרוב שומן או מסרחון אין עליו שם שרץ כלל דלא הוה שרץ רק בגידולי קרקע או בעניני שתיה כמים ושארי משקין [ט"ז סקכ"ג בשם רש"ל וב"י בשם ראבי"ה] ורבינו הרמ"א לא הסכים לדעתם אלא שסמך על דיעה זו לענין תערובות ובאמת דיעה זו תמוה שהרי הרמב"ם כתב להדיא בפ"ב דין י"ג וז"ל אלו המינין הנבראין באשפות ובגופי הנבלות כגון רמה ותולעה וכו' מן הגללים שהסריחו וכו' והאוכל מהן כזית לוקה וכו' אלו המינין הנבראין בפירות ובמאכלות אם פירשו וכו' אע"פ שחזרו לתוך המאכל לוקה וכו' עכ"ל וכ"כ כל הראשונים וכבר צווח על זה ככרוכיא אחד מגדולי אחרונים [פר"ח ס'"ס זה] וחלילה להקל בזה [וכן מוכח בת"כ פ' שמיני: