WASHINGTON — A group of bipartisan House lawmakers on Monday outlined a plan to stem the flow of counterfeit products from China and other countries into the United States by making e-commerce companies such as Amazon legally liable for fake goods sold on their websites.

The proposed legislation was a rare show of bipartisanship in the House of Representatives, which has been sharply divided after the impeachment of President Trump. But frustration that large corporations are not doing enough to protect American consumers from the dangers of illicit products coming from China is an issue that has galvanized Republicans and Democrats alike.

The bill, called the Shop Safe Act, would create trademark liability for companies selling counterfeit goods that pose risks to consumer health and safety, like drugs and medical products. It would also force companies to more rigorously vet sellers who operate on their platforms and to remove counterfeit listings and those who repeatedly sell knockoffs.

“Consumer lives are at risk because of dangerous counterfeit products that are flooding the online marketplace,” Representative Doug Collins, Republican of Georgia, said in a statement. “Congress must create accountability to prevent these hazardous items from infiltrating the homes of millions of Americans.”