Is there an expression for when someone fabricates a quote? [closed]

Solution 1:

You can refer to it as

putting words into someone's mouth

Merriam Webster defines this phrase as:

to suggest that someone said or meant something that he or she did not actually say or mean

Ex. Don't put words in my mouth. I wasn't defending his actions, despite what you may think.

WordHippo gives twisting someone's words as a synonym.