Static references can prevent objects from being garbage collected, causing memory leaks.
Static references persist for the lifetime of the application, and if they reference large objects or collections, these objects remain in memory unnecessarily. In a shopping cart application, a static cache that grows indefinitely could lead to a memory leak if not managed correctly.