ESG funds are beating the market and raking in cash. Here are the top stocks they own

Small paper boat sailing in the sea of a globe sphere
Alicia Llop

(This story is for CNBC PRO subscribers only.)

Socially responsible funds are attracting a record amount of cash as ESG investing grows in popularity, and companies that focus on environmental, social and governance factors are outperforming their peers, according to Bank of America.

Scanning ESG-focused funds, the firm found that the top 50 most commonly held stocks outperformed the bottom 50 stocks by 22 percentage points, while noting that these funds have seen 21 straight weeks of inflows.