From what I read, some countries have 6 month rule, some have 3 month rule, some have 1 month rule. So depends where you are connecting. But I do believe you still need to meet the requirement even just for transit.
https://cibtvisas.com/blog/us-passport-validity-guide#:~:text=What%20is%20the%20six%2Dmonth,on%20your%20dream%20destination%20list.
Which countries require passport validity of six months?
Some countries requiring six months of passport validity include: mainland China, Mongolia, Vietnam, Cambodia, Laos, Thailand, Malaysia, Singapore, Indonesia, Burma, India, Nepal, Pakistan, Russia, Kuwait, Saudi Arabia, Bahrain, Qatar, the United Arab Emirates, Oman, Jordan, Israel, Egypt, and Turkey.
Which countries require three months of passport validity?
Several countries, including those within the Schengen Area, require your passport to be valid for three months beyond your intended departure date.
These countries include many popular European destinations: Austria, Belgium, Czech Republic, Croatia, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Italy, Latvia, Liechtenstein, Lithuania, Luxembourg, Malta, Netherlands, Norway, Poland, Portugal, Slovakia, Slovenia, Spain, Sweden, and Switzerland.