It's possible that your sewer pipe is cracked if these long brown worms show up in a toilet. Worms or foreign bodies can easily enter your home if you have a cracked pipe. If the water has oxygen in it, the earthworm will stay alive because they soak up oxygen from their skin.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.