Kingdom Hearts Union χ[Cross]
As Player and Aladdin return to Agrabah to stop Jafar, the latter is asking Jasmine to become his queen. When she denies him, Jafar attempts to use Genie to force Jasmine to fall madly in love with him. Seeing Aladdin sneak into the throne room, Jasmine pretends that Jafar's wish worked to buy Aladdin time to steal back the lamp, but Iago sees spots them and warns Jafar. The latter transforms himself into the giant cobra and battles Aladdin and Player. The vizier manages to get the upper hand and constricts Aladdin and Player, only to be tricked by Aladdin into wishing to become a genie himself, as Genie's power still outweighed his own.
Kingdom Hearts V CAST
Jafar's Cobra form appears in the non-canonical Kingdom Hearts V CAST. He uses this transformation to fight Sora.