Duplicate emails are sent multiple times using CC or BCC

We use the email function in ERPNext to send confirmation to users as reminder of order renewal but we’ve had several reclamation because emails are sent several times each.
I’ve tried to trace the misbehaviour and found that if we use CC or BCC it affects the number of mails.

If there’s only one recipient, then only one mail is sent.
If there’s two recipients, mails are sent twice (for each recipient).
If there’s three recipients, mails are sent three times (for each recipient)

I tried to analyze the code in frappe/queue.py at version-12 · frappe/frappe · GitHub but as I have very little experience in Python, I’m having hard time to find the exact spot which might affect this.

Please, could someone with more experience test this out and point me to the right direction in order to fix this behavior.

ERPNext: v12.26.0 (version-12)

Frappe Framework: v12.23.0 (version-12)

I am having the same problem in V14.

Any solution to this? We really want to send e-mail to CC and BCC recipients instead of single TO e-mails.