Causes of Corroded or Burned Wires
Loose connections can produce heat and cause this problem. The fix is to disconnect and reconnect properly. Spring-loaded "stab connections" are particularly likely to suffer this problem; screw terminals (or shove-in terminals that are clamped by tightening a screw) are more reliable. If in doubt, outlets are cheap and you might want to simply replace this one.