What are the chemicals that are found in a aa battery that's leaking?

Potassium hydroxide. Standard aa batteries are alkaline batteries, and can leak a caustic chemical called potassium hydroxide. Rechargable aa batteries (e.g. Nimh) do not contain this chemical, but may vent hydrogen and rupture.