San Rafael assemblyman Jared Huffman authored the bill.
Current laws allow many recalled products to remain on store shelves, even after warnings have been issued about them.
The new law also bans selling recalled items in second-hand stores or online.