The spell wish offers several things you can wish for that are guaranteed to work. Wishing for other things can lead to consequences, at the DM's discretion:
You might be able to achieve something beyond the scope of the above examples. State your wish to the GM as precisely as possible. The GM has great latitude in ruling what occurs in such an instance; the greater the wish, the greater the likelihood that something goes wrong. This spell might simply fail, the effect you desire might only be partly achieved, or you might suffer some unforeseen consequence as a result of how you worded the wish.
However, some game features offer alternative uses of wish, for example, the spell geas can be ended via a wish spell:
You can end the spell early by using an action to dismiss it. A remove curse, greater restoration, or wish spell also ends it.
What are all of the game features that include one of these "off-label" uses of the wish spell?
Best Answer
Spells and spell effects
Spells and spell effects that name wish as an end condition:
Magic items
Many magic items have various interactions with wish:
Monster abilities
Many monsters have abilities that inflict some curse or condition that can only be reversed by a wish spell, or have some other interaction with wish:
Adventure specific effects
This section is for other effects that don't fit nicely into the other bins that are described in published adventures. As these are adventure specific, they will be hidden behind spoiler blocks.
The Wild Beyond the Witchlight
Curse of Strahd
Baldur's Gate: Descent into Avernus
Candlekeep Mysteries
Hoard of the Dragon Queen
Icewind Dale: Rime of the Frostmaiden
Waterdeep:Dungeon of the Mad Mage
Critical Role: Call of the Netherdeep
Examples of some spells being made permanent via wish
We don't have anything that says "you can make a spell effect permanent with wish", but we do have a few published examples of this happening: