A security vulnerability in Python's http.cookiejar.CookieJar module allowed a server to delete cookies belonging to other domains from a shared cookie jar by sending an expired Set-Cookie header. This occurred because the module used the Domain and Path attributes from the header without consulting the cookie policy. The issue was fixed by ensuring the cookie policy is consulted before an expired cookie can delete an existing one, in compliance with RFC 6265 section 5.3.