Rapunzel is a minor villain in the Blood and Wine expansion of The Witcher 3: Wild Hunt.
As everyone in the illusion, she is a stereotypical fairytale character, in her case an evil version of Rapunzel. She lives in the fairytale illusion created by the royal mage when Syanna and Anarietta were children.
After realising that no one was coming for her, Rapunzel commited suicide by hanging herself on the chandelier with her own hair. Afterwards, she turned into a vengeful ghost. When Geralt enters her tower to find a magic bean, the ghost attacks Geralt after berating him for coming 'too late'.
After killing the ghost of Rapunzel, Geralt can take the magic bean from her bed.
The Witcher 2: Assassin of Kings
The Witcher 3: Wild Hunt