A bug in PSL validation logic in Apache HttpClient 5.4.x disables domain checks, affecting cookie management and host name verification. Discovered by the Apache HttpClient team. Fixed in the 5.4.3 release
https://lists.apache.org/thread/55xhs40ncqv97qvoocok44995xp5kqn8
https://hc.apache.org/httpcomponents-client-5.4.x/index.html